title: How to convert LINQ query result to List?
body: <p>I need to convert linq query result to list. I tried the following code:</p>
  
  <pre class="lang-cs prettyprint-override"><code>var qry = from a in obj.tbCourses
                       select a;
  
  List&lt;course&gt; lst = new List&lt;course&gt;();
  lst = qry.ToList();
  </code></pre>
  
  <p>The following error occurred for the above code: </p>
  
  <pre><code>Cannot implicitly convert type 
  System.Collections.Generic.List&lt;Datalogiclayer.tbcourse&gt; to
  System.Collections.Generic.List&lt;course&gt;
  </code></pre>