Transform BYTE to uint8_t and some uint8_t to char