title: IQueryable OfType<T> where T is a runtime Type
body: <p>I need to be able to get something similar to the following to work:</p>
  
  <pre><code>Type type = ??? // something decided at runtime with .GetType or typeof;
  object[] entityList = context.Resources.OfType&lt;type&gt;().ToList();
  </code></pre>
  
  <p>Is this possible? I am able to use .NET 4 if anything new in that allows this.</p>