Error: can't cast UInt32 to UInt8

.to_u8 works.

I have no idea what is the difference between .as(UInt8) vs .to_u8, and haven’t see .unsafe_as( ) before - what good is that?

1 Like