title: How to get type of COM object
body: <p>I am referencing a COM library in Visual Studio, so it has automatically created the corresponding Interop assembly for me. I would like to do a <code>GetType()</code> on these com objects, but they always return <code>System.__ComObject</code>. Querying them for an interface works though:</p>
  
  <pre><code>bool isOfType = someComeObject is ISomeComObject; //this works
  </code></pre>
  
  <p>But what I really want is this to return the actual type of the com object:</p>
  
  <pre><code>Type type = someComeObject.GetType(); //returns System.__ComObject :-(
  </code></pre>
  
  <p>Does anyone know how to do what I want to do?</p>