title: Entity Framework ICollection to List
body: <p>I am trying to do something like this:</p>
  
  <pre><code> List&lt;Department&gt; t = db.Employees
          .Where(e =&gt; e.CompanyId.Equals(12345))
          .Where(e =&gt; e.Departments.Any(d =&gt; d.IsActive.Equals(true)))
          .Select(e =&gt; e.Departments);
  </code></pre>
  
  <p>But it gives me an error telling me that can't implicitly convert from <code>IQueryable&lt;ICollection&lt;Department&gt;&gt; to List&lt;Department&gt;</code>.</p>
  
  <p>My Linq is a bit rusty. What is the right way to bring this down to the <code>List&lt;Department&gt;</code></p>