Cast to a char pointer instead of a long.

Safer to cast to a pointer than to a long given sizeof(long) could be less than
the size of a pointer.