Cannot cast list iterator to an object
<p>I get the error:</p>

<pre><code>error C2682: cannot use 'dynamic_cast' to convert from 'std::_List_iterator&lt;_Mylist&gt;' to 'UserBean *'
</code></pre>

<p>When executing:</p>

<pre><code>list&lt;UserBean&gt; * userBeans = getUserBeans();

for(list&lt;UserBean&gt;::iterator i = userBeans-&gt;begin(); i != userBeans-&gt;end(); i++)
   UserBean * newUser = dynamic_cast&lt;UserBean*&gt;(i);
</code></pre>

<p>Am I doing something wrong, or can you not convert iterator items to objects?</p>
