I faced the same problem as you, and the way I got it to work was by encompassing the whole thing in parentheses.
Example:
pChar = ((char*)pVoid);