title: Cast and : from parent to child class
body: <p>i have 2 class: hObject, Drawer. Drawer inherit from hObject. </p>
  
  <p>with this code i retrive a particular object by id:</p>
  
  <pre><code>hObject * foundObj = hManager::getInstance()-&gt;getObject("drawer_id");
  </code></pre>
  
  <p>now i want to correctly cast foundObj from hObject to Drawer. with:</p>
  
  <pre><code>vector&lt;int&gt; points = ((DrawerWidget *)hObject)-&gt;getPoints();
  </code></pre>
  
  <p>i recive</p>
  
  <blockquote>
    <p>expected primary-expression before ‘)’ token</p>
  </blockquote>
  
  <p>and what about dynamic cast?</p>
  
  <p>consideration: my skills has been halved till i began c++</p>