title: cast const Class using dynamic_cast
body: <p>I want to cast this:</p>
  
  <pre><code>class Base 
  {
  public:
      virtual ~Base(){};
  };
  class Der : public Base {};
  
  int main()
  {
      const Base* base = new Der;
      Der* der = dynamic_cast&lt;Der*&gt;(base); // Error
  
      return 0;
  }
  </code></pre>
  
  <p>What should I do?
  I tried to put: <code>const Der* der = dynamic_cast&lt;Der*&gt;(base);</code> to mantain the const but this doesn't work.</p>