Its address is taken there with &, which yields a const char*. The (char *) cast is only there to cast away const.