Converts an U16 value to bytes
The number to convert
The bytes representation of the number
if the value is negative or too large for U16
Converts an U16 value to bytes