title: How to add an extension method to List of custom object to covert them to a new list
body: <p>I want to be able to create an extension method to convert a list of one type to a list of another type.</p>
  
  <pre><code> IEnumerable&lt;Entity&gt; EntityList = EntityData.GetAll();
   IEnumerable&lt;ViewModel&gt; = EntityList.ToViewModel();
  </code></pre>
  
  <p>I want to create the ToViewModel method but I'm not sure how to go about that.</p>