Fixed conversion from void* to unsigned char*