I am trying to convert a project over from Racket to Typed Racket and I am encountering some issues with the typing mechanisms.
string->number returns (U Complex False), but I cannot find any procedures to convert that (or even just a Complex) to an Integer.
A very short example that illustrates my issue:
#language typed/racket
(define die : Integer 5)
(define dlist '("1" "2" "3" "4" "5"))
(set! die (string->number (car dlist)))
Thanks for your help!