Possible Duplicate:
When should static_cast, dynamic_cast and reinterpret_cast be used?
Until a few days ago, I've always used C style type casting in C++ because it seemed to work good. I recently found out that using C in C++ is very bad..
I've never really used C++ casting before, so I'm wondering if someone could tell me (in their own words preferably) what the difference between static_cast, reinterpret_cast and const_cast are?
const_cast I know removes a "const" from something, but I'm not sure what the difference between them all is, and what one I need to use in different situations.