title: C++ type casting
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/332030/when-should-static-cast-dynamic-cast-and-reinterpret-cast-be-used">When should static_cast, dynamic_cast and reinterpret_cast be used?</a>  </p>
  </blockquote>
  
  
  
  <p>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..</p>
  
  <p>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?</p>
  
  <p>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.</p>