title: Convert anonymous type to class
body: <p>I got an anonymous type inside a List anBook:</p>
  
  <pre><code>var anBook=new []{
  
  new {Code=10, Book ="Harry Potter"},
  new {Code=11, Book="James Bond"}
  };
  </code></pre>
  
  <p>Is to possible to convert it to a List with the following definition of clearBook:</p>
  
  <pre><code>public class ClearBook
  {
    int Code;
    string Book; 
  }
  </code></pre>
  
  <p>by using direct conversion, i.e., without looping through anBook? </p>