Defines conversion to uint16_t