const unsigned char * b = (unsigned char *)a;
じゃないの?