title: Cannot implicitly convert type 'System.Linq.IQueryable<AnonymousType#1>'
body: <p>Im getting an error in my C# project which is causing me a headache. The error is:</p>
  
  <pre><code>Cannot implicitly convert type 'System.Linq.IQueryable&lt;AnonymousType#1&gt;'
  to System.Collections.Generic.IEnumerable&lt;KST.ViewModels.Gallery&gt;'.
  </code></pre>
  
  <p>Here's my LINQ querys:</p>
  
  <pre><code>//Get Single Picture
  var PictureResults = (from m in DB.Media where m.MediaID == 450 select m).SingleOrDefault();
  
  //Get Gallery Pictures and Gallery Title
  var GalleryResults = from g in DB.Galleries
                       join m in DB.Media on g.GalleryID equals m.GalleryID into gm
                       where g.GalleryID == 100
                       select new { g.GalleryTitle, Media = gm };
  </code></pre>
  
  <p>Here's my  viewmodels.</p>
  
  <pre><code>public class GalleryViewModel
  {
      public Media Media { get; set; }
      public IEnumerable&lt;Gallery&gt; Gallery { get; set; }
  }
  
  public class Gallery
  {
      public string GalleryTitle { get; set; }
      public int MediaID { get; set; }
      public int GalleryID { get; set; }
      public string MediaGenre { get; set; }
      public string MediaTitle { get; set; }
      public string MediaDesc { get; set; }
  }
  </code></pre>
  
  <p>The squigally line error occurs under GalleryResults:</p>
  
  <pre><code>//Create my viewmodel
  var Model = new GalleryViewModel
  {
      Media = PictureResults,
      Gallery = GalleryResults
  };
  </code></pre>