error C2440: 'type cast' : cannot convert from 'std::_Vector_iterator<_Ty,_Alloc>' to 'DWORD'
<p>I get the following error:</p>

<pre><code>error C2440: 'type cast' : cannot convert from 'std::_Vector_iterator&lt;_Ty,_Alloc&gt;' to 'DWORD'
        with
        [
            _Ty=LPCSTR ,
            _Alloc=std::allocator&lt;LPCSTR &gt;
        ]
        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
</code></pre>

<p>Im using Visual Studio 2005. This worked on older Visual Studio but not on this one. Heres the code causing errors:</p>

<pre><code>std::vector&lt;LPCSTR&gt; factions;

...

*(DWORD*)(offset+0x571) = (DWORD)factions.begin(); &lt;- error here
</code></pre>

<p>How can I solve this?</p>
