Type Casting in c#
<p>I have a problem with declaring a <strong>type</strong> as passed from parameter type variable. </p>

<pre><code>public static void ShowThisForm(Type passXtraForm, Form parent)
    {
        var xfrm = passXtraForm.GetType();
        xfrm xfrmName = new xfrm();
        xfrmName.Show();
    }
</code></pre>

<p>Can I declare a variable as a type from passXtraForm.GetType() and declare it to another variable? Just passing the type of form to another class.</p>

<p>Thanks in advance for the response.</p>
