Add type checking to 16/32/64 endianness converters