Support Bool -> UInt8 cast