title: Unable to cast object of type System.Collections.Generic.List[System.Object] to type System.Collections.Generic.IList[ShortCodeList]
body: <p>The BindingProperties returns the Type T. The result the linq query brings at runtime is <code>System.Collections.Generic.IList[ShortCodeList]</code> but when I try to type cast it with IList T>, it returns:</p>
  
  <blockquote>
    <p>Unable to cast object of type
    'System.Collections.Generic.List&#x60;1[System.Object]' to type
    'System.Collections.Generic.IList&#x60;1[ModelAccessLayer.Model.ShortCodeList]'</p>
  </blockquote>
  
  <pre><code>    private IList&lt;T&gt; GetResultSetConvertedToList&lt;T&gt;(IList&lt;T&gt; dataSet, IEnumerable&lt;dynamic&gt; resultSet) where T : class, new()
      {
          IList&lt;T&gt; customResult = (IList&lt;T&gt;)(resultSet.Select(x =&gt; BindingProperties(new T(), x)).ToList());
          return customResult;
      }
  </code></pre>
  
  <p>Could anyone help me out with this issue?</p>