Use reinterpret_cast to convert the unsigned char* returned