pub fn cast_uint32_to_uint16<'a>(a: u32) -> Result<u16, EvalError>