Renamed numberToBytes to numberToByteArray.