This seems unnecessary. When building a literal with a particular endianness, I don't think that there should be any unsafe code.