title: C# - var to List<T> conversion
body: <p>How to cast/convert a var type to a List type?</p>
  
  <p>This code snippet is giving me error:</p>
  
  <pre><code>List&lt;Student&gt; studentCollection = Student.Get();
  
  var selected = from s in studentCollection
                             select s;
  
  List&lt;Student&gt; selectedCollection = (List&lt;Student&gt;)selected;
  foreach (Student s in selectedCollection)
  {
      s.Show();
  }
  </code></pre>