You can just cast the data to the type you need. Cast it to an unsigned char.

Viggy