The function cast-integer
casts the integer integer to the foreign type type.
type must be a FLI integer type, either primitive or derived.
(format nil "~B"
(fli:cast-integer -1 '(:unsigned :int)))
=>
"11111111111111111111111111111111"
LispWorks Foreign Language Interface User Guide and Reference Manual - 29 Sep 2017