Casts an integer to a given type.
fli
cast-integer integer type => result
integer
A Lisp integer.
type
A foreign type.
result
The function cast-integer casts the integer integer to the foreign type type .
cast-integer
type must be a FLI integer type, either primitive or derived.
(format nil "~B"
(fli:cast-integer -1 '(:unsigned :int)))
=>
"11111111111111111111111111111111"
:signed :unsigned