title: Cannot implicity convert type 'System.Collections.Generic.List<string>' to 'System.Collections.Generic.IList<LM_WebApi.Controllers.Items>
body: <p>Having problem on my web api &quot;Cannot implicity convert type IQueryable&lt;&gt; to Generic.List&quot;. I'm getting the data from Entity Framework.
  When I put ToList() it return this error: <strong>System.Collections.Generic.List' to 'System.Collections.Generic.IList&lt;LM_WebApi.Controllers.Items&gt;</strong></p>
  <p><a href="https://i.stack.imgur.com/9wsHA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9wsHA.png" alt="enter image description here" /></a></p>
  <pre><code>    public IList&lt;Sales_Data&gt; GetSalesData()
      {
          using (var db = new LM_ReportEntities())
          {
              var list = db.OE_Invoiced_BaseProducts.Where(x =&gt; x.Year == &quot;2020&quot; &amp;&amp; x.Period == 1);
              
              IList&lt;Sales_Data&gt; salesData = new List&lt;Sales_Data&gt;();
  
              salesData.Add(new Sales_Data { Items = list.Select(x =&gt; x.Item_Number).ToList() });
              salesData.Add(new Sales_Data { Periods = list.Select(x =&gt; x.Period) });
  
              return salesData;
          }
      }
  </code></pre>
  <p>Here are my class:</p>
  <pre><code>public class Items
  {
      public string Item_No { get; set; }
  }
  
  public class Periods
  {
      public string Period { get; set; }
  }
  </code></pre>
  <p>My model:</p>
  <pre><code>public class Sales_Data
  {
      public IList&lt;Items&gt; Items { get; set; } 
      public IList&lt;Periods&gt; Periods { get; set; }
  }
  </code></pre>
  <p>I want to return the data from Items and Periods as List.</p>