title: Best way to convert IList or IEnumerable to Array
body: <p>I have a HQL query that can generate either an IList of results, or an IEnumerable of results. </p>
  
  <p>However, I want it to return an array of the Entity that I'm selecting, what would be the best way of accomplishing that? I can either enumerate through it and build the array, or use CopyTo() a defined array.</p>
  
  <p>Is there any better way? I went with the CopyTo-approach.</p>