cast
Converting a number to another type with as.
An as cast converts between primitive types and never fails: it truncates, wraps, or saturates as needed.
Examples
300_i32 as u8is 44 and-1_i32 as u8is 255:askeeps the low bits instead of reporting a problem.
See also