Add support for the cases where the pointer is not char*.