title: Cannot Implicitly Convert Type 'System.Collections.Generic.List<>' to 'IList<>'. An explicit conversion exists (are you missing a cast?)
body: <p>I know questions like this exist, I been through all of them - didn't help.
  Here is my class:</p>
  
  <pre><code> public class EventService : IEventService
      {
          TournamentContext db = new TournamentContext();
  
          public IList&lt;Event&gt; GetEvents()
          {
              List&lt;Event&gt; events = new List&lt;Event&gt;();
  
              IQueryable&lt;Event&gt; eventsList = from s in db.Event
                           select s;
              events = eventsList.ToList();
  
              return events;
          }
  }
  </code></pre>
  
  <p>I got error:</p>
  
  <blockquote>
    <p>Error   CS0266  Cannot implicitly convert type
    'System.Collections.Generic.List' to
    'Tournament.Services.Events.IList'. An
    explicit conversion exists (are you missing a
    cast?)    Tournament.Services</p>
  </blockquote>
  
  <p>Can't figure out how to convert System.Collections.Generic.List&lt;>' to
  'IList&lt;>' tried <a href="https://stackoverflow.com/questions/3402822/cannot-implicitly-convert-type-system-linq-iqueryable-to-system-collections-g">this</a> and few others but it didn't work.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Implementing accepted solution and changing IEventInterface this works just fine now:</p>
  
  <pre><code> public System.Collections.Generic.IList&lt;Event&gt; GetEvents() {
  
          var events = from s in db.Event
                       select s;
  
          return events.ToList();
      }
  </code></pre>