title: How to cast C#'s linq WHERE statement?
body: <p>I have a class Literal and a Tag is inheriting from it.</p>
  
  <p>I would like to do the following but I am getting </p>
  
  <pre><code>Unable to cast object of type 'WhereListIterator`1[Core.Literal]' to type 'System.Collections.Generic.List`1[Core.Tag]'.
  
   private List&lt;Literal&gt; literals;
  public List&lt;Tag&gt; Tags
          {
              get { return (List&lt;Tag&gt;)literals.Where(x =&gt; x is Tag); }
          }
  </code></pre>
  
  <p>thanks</p>