title: LINQ Cast Enumerable to List of specific type
body: <p>I am trying to formulate a LINQ query to select a sublist of a list where it meets a where condition like so:</p>
  
  <pre><code>List&lt;Entities.Base&gt; bases = this.GetAllBases();
  List&lt;Entities.Base&gt; thebases = from aBase in bases
                                 where aBase.OfficeCD == officeCD
                                 select aBase;
  </code></pre>
  
  <p>where Base is just an Entity class:</p>
  
  <pre><code>public string BaseCD { get; set; }
          public string BaseName { get; set; }
          public string OfficeCD { get; set; }
          public DateTime EffectiveDate { get; set; }
          public DateTime ExpirationDate { get; set; }
  </code></pre>
  
  <p>I am getting an error "Cannot implictly convert type System.Collections.Generic.IEnumerable to System.Collections.Generic.List</p>
  
  <p>So I tried to apply the Cast operator but that fails. I see now that I am not tring to convert the type of the element. How can I solve this issue? Thanks!</p>