title: Convert List to Array for [WebMethod]
body: <p>I understand that you cannot return a generic list in a standard .asmx webservice. However I believe you can return an array []. My problem is converting the list to an array. Can someone help?
  I have a bunch of Business Object that already return a type List so I am not open to converting the original objects to Arrays...</p>
  
  <p>Here is my WebMethod.</p>
  
  <pre><code>   [WebMethod]
  
      public Book[] GetBooksList()
  
      {
  
          List&lt;Book&gt; obj = new List&lt;Book&gt;();
          BookDA dataAccess = new BookDA();       
  
          obj = dataAccess.GetBooksAll().ToArray(); //error 1 here on conversion
  
      return obj; //error 2 here
  
      }  
  </code></pre>
  
  <p>Error I receive is 2 fold : Cannot implicitly convert type BookDTO.Book [] to GenericList</p>
  
  <p>Cannot implicitly convert type GenericList to </p>