Is it possible to have a void pointer to a class?

If it is how I can stop the compiler telling me “left of '->Function’ must point to class/struct/union”?