Convert an object to System Guid
<pre><code>Guid mainfolderid = (main.GetValue(""));
</code></pre>

<p>where <code>main</code> is a dynamic entity.</p>

<p>How can I convert the above mentioned <code>main.GetValue("")</code> to <code>System.Guid</code>?</p>

<p>The error says</p>

<blockquote>
  <p>Cannot implicitly convert type object to 'System.Guid'.</p>
</blockquote>
