title: C# Using Generic Class without Specifying Type
body: <p>I have a generic class I have created as so:</p>
  
  <pre><code>public abstract class MyClass&lt;T&gt;
  {
      public T Model
      {
          get;
          protected set;
      }        
  }
  </code></pre>
  
  <p>And at some point in my code I want to do something with anything of MyClass type. Something like:</p>
  
  <pre><code>private void MyMethod(object param)
  {
      myClassVar = param as MyClass;
      param.Model....etc
  }
  </code></pre>
  
  <p>Is this possible? Or do I need to make MyClass be a subclass of something (MyClassBase) or implement an interface (IMyClass)?</p>