cast 2 signed/unsigned char pointer conversions to prevent warnings