title: linq to entities cannot convert type Icollection to type List
body: <p>I'm using Entity Framework.
  I have the following entities:</p>
  
  <pre><code>public class Articolo
  {
      ..
      public virtual ICollection&lt;Fornitore&gt; Fornitori { get; set; }
  }
  
  public class Fornitore
  {
    ...
     public virtual ICollection&lt;Articoli&gt; Articoli { get; set; }    }
  </code></pre>
  
  <p>the following code:</p>
  
  <pre><code>List&lt;Fornitore&gt; result = new List&lt;Fornitore&gt;();
  var r = zefiroContext.Articoli.Where(p =&gt; p.Id == IdArticolo).Select(p =&gt; p.Fornitori).ToList();
  result = r;
  </code></pre>
  
  <p>gives a compiler error:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'System.Collections.Generic.List &lt;
    System.Collections.Generic.ICollection &lt; prova2.Model.Fornitore>>' to
    'System.Collections.Generic.List &lt; prova2.Model.Fornitore>'</p>
  </blockquote>
  
  <p>how can I get my <code>List &lt; Fornitore &gt;</code> ?</p>