title: Down Casting ID3D11Texture2D
body: <p>According to the documentation <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ff476635(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/ff476635(v=vs.85).aspx</a> </p>
  
  <p>ID3D11Texture2D inherits from the  ID3D11Resource. </p>
  
  <p>I tried the following but it gives a std:non-rtti exception.</p>
  
  <pre><code>ID3D11Texture2D *tex2d = dynamic_cast&lt;ID3D11Texture2D*&gt;(resource);
  </code></pre>