Convert char pointer (char*) to struct
<p>I have a struct:</p>

<pre><code>//Custom packet structure.
struct UserPacket
{
 __int64 pingTime;
} CustomPacket;
</code></pre>

<p>I have already figured out how to convert it to a char*. Now I want to convert the char* back to the struct. Any suggestions?</p>
