title: Converting 'System.Collections.Generic.IEnumerable<T>' to 'System.Collections.ObjectModel.Collection<T>'
body: <p>I have a Collection, I'm trying to use the Distinct method to remove duplicates.</p>
  
  <pre><code>public static Collection&lt;MediaInfo&gt; imagePlaylist
  
  imagePlaylist = imagePlaylist.Distinct(new API.MediaInfoComparer());
  </code></pre>
  
  <p>I get the error "Cannot implicitly convert type 'System.Collections.Generic.IEnumerable' to 'System.Collections.ObjectModel.Collection'. An explicit conversion exists (are you missing a cast?)"</p>
  
  <p>imagePlaylist used to be a List (i could use .ToList()), but to comply with "CA1002  Do not expose generic lists" I want to convert the List to a Collection.</p>
  
  <p>-Thanks</p>