Possible Duplicate:
Regular cast vs. static_cast vs. dynamic_cast
i've been using C-like casts since i've been programming:
class* initializedClassInstance;
void* test = (void*) initializedClassInstance;
and i've been told somewhere that i should get used to C++ casts (static_cast, dynamic_cast...).
Is there a reason to prefer one over the other (C++ over C style)? There is a difference between static cast and dynamic cast, right? But what is it?
Thanks!