fixed integer to bytes method