title: Casting a COMObject of TextBox type to a C# Object
body: <p>I am currently working on a application that communicates with a client.
  As  shown below, I have a delegated method that returns the received message as  a ComObject of type TextBox.</p>
  
  <pre><code>void mailbox_MessageReceived(ref object ComObj1) {
      string typeName = Microsoft.VisualBasic.Information.TypeName(ComObj1);
      Console.WriteLine(typeName); //Prints "TextBox"        
  
      //insert rest of code here
  }
  </code></pre>
  
  <p>So far, I have unsuccessfully tried to cast (<code>ComObj1</code> as TextBox), and tried to get the <code>IntPtr</code> for <code>ComObj1</code> to pass as an argument in  <code>Marshal.GetObjectForNativeVariant()</code>, both to no avail.</p>
  
  <p>My question is how should I cast <code>ComObj1</code> to a C# Object?</p>