title: How to convert var to string[]
body: <p>I have written a LINQ in C#</p>
  
  <pre><code>string etXML = File.ReadAllText("ET_Volume.xml");
  string[] allLinesInAFile = etXML.Split('\n');
  
  var possibleElements = from line in allLinesInAFile
                         where !this.IsNode(line)
                         select new { Node = line.Trim() };  
  
  string[] xmlLines = possibleElements.ToArray&lt;string&gt;();
  </code></pre>
  
  <p>The problem is coming at last line, where the following errors arise:</p>
  
  <blockquote>
    <ul>
    <li><p><code>System.Collections.Generic.IEnumerable&lt;AnonymousType#1&gt;</code> does
    not contain a definition for <code>ToArray</code> and the best extension method
    overload
    <code>System.Linq.Enumerable.ToArray&lt;TSource&gt;(System.Collections.Generic.IEnumerable&lt;TSource&gt;)</code>
    has some invalid arguments     </p></li>
    <li><p>Instance argument: cannot convert
    from <code>System.Collections.Generic.IEnumerable&lt;AnonymousType#1&gt;</code> to
    <code>System.Collections.Generic.IEnumerable&lt;string&gt;</code></p></li>
    </ul>
  </blockquote>
  
  <p>What is wrong and what is the way to convert my <code>var</code> to a <code>string[]</code>?</p>