title: Why doesn't c++ allow (auto) casting?
body: <p>When converting from for example a void* to a PMY_OBJECT, one would have to do something like this:</p>
  
  <pre><code>void MyFunction(void* v) {
  
      PMY_OBJECT p = (PMY_OBJECT) v;
  
  }
  </code></pre>
  
  <p>In C, you don't have to cast it at all, but in c++ the closest thing would be:</p>
  
  <pre><code>PMY_OBJECT p = (decltype(p)) v;
  </code></pre>
  
  <p>Why not simply:</p>
  
  <pre><code>PMY_OBJECT p = (auto) v;
  </code></pre>
  
  <p>?</p>