title: Casting a generic class without specific type
body: <p>I have the following generic class</p>
  
  <pre><code>public class Home&lt;T&gt; where T : Class
  {
     public string GetClassType
     {
         get{ return T.ToString() }
     }
  }
  </code></pre>
  
  <p>Now, I'm getting an Object X which I know for sure is Home:</p>
  
  <pre><code>public void DoSomething(object x)
  {
      if(x is // Check if Home&lt;&gt;)
      {
          // I want to invoke GetClassType method of x  
          // but I don't know his generic type
          x as Home&lt;?&gt; // What should I use here?
      }
  }
  </code></pre>
  
  <p>Can I even make a cast without specifying the generic type of the class? </p>