title: Cannot cast from List<Node> to List<Element>
body: <p>everyone.
  I'm practicing dom4j and Xpath but got stuck on a problem.</p>
  
  <p>I'm trying to: </p>
  
  <pre><code>List&lt;Element&gt; conList = (List&lt;Element&gt;)doc.selectNodes("//contact");
  </code></pre>
  
  <p>but got an Error:</p>
  
  <pre><code>Cannot cast from List&lt;Node&gt; to List&lt;Element&gt;
  </code></pre>
  
  <p>The code seems to be working fine in a teaching video,
  but didn't work in my computer.</p>
  
  <p>Is it kind of an illegal operation?
  Can I solve the problem by any other way?
  Thanks.</p>