Why am I getting an unchecked cast warning?
<p>In a JTree I use this code and  I don't receive any warnings:</p>

<pre><code>Enumeration&lt;DefaultMutableTreeNode&gt; en = (Enumeration&lt;DefaultMutableTreeNode&gt;)selNode.postorderEnumeration();
</code></pre>

<p>but when I use the following code I get an <code>unchecked cast</code> warning:</p>

<pre><code>Enumeration&lt;DefaultMutableTreeNode&gt; en = (Enumeration&lt;DefaultMutableTreeNode&gt;)selNode.pathFromAncestorEnumeration( this.getRootNode() );
</code></pre>

<p>Whats the deal?</p>
