title: Cannot implicitly convert type to 'System.Collections.Generic.List
body: <p>I want to populate a viewmodel with a DateTime property, and also a list of categories.</p>
  
  <p><strong>ViewModel:</strong></p>
  
  <pre><code>public class TourCategoryVM
  {
      public DateTime Date { get; set; }
      public List&lt;TourCategoryList&gt; TourCategoryList { get; set; }
  }
  
  public class TourCategoryList
  {
      public int TourCategoryId { get; set; }
      public string TourType { get; set; }
  }
  </code></pre>
  
  <p>Domain model:</p>
  
  <pre><code>public class TourCategory
  {
      public int TourCategoryId { get; set; }
      public string TourType { get; set; }
      public virtual ICollection&lt;Tour&gt; Tour { get; set; }
  }
  </code></pre>
  
  <p>I thought I could populate it easily with this code:</p>
  
  <pre><code>        var viewModel = new TourCategoryVM();
          viewModel.TourCategoryList = db.TourCategories();
  </code></pre>
  
  <p>However, I'm getting the error:</p>
  
  <blockquote>
    <p>Error 1   Cannot implicitly convert type<br>
    <code>System.Data.Entity.DbSet&lt;tb.Models.TourCategory&gt;</code> to<br>
    <code>System.Collections.Generic.List&lt;tb.Models.ViewModels.TourCategoryList&gt;</code>  </p>
  </blockquote>
  
  <p>Is it my ViewModel that's wrong?</p>