Add from_byte and to_byte support