Check whether a string is an instance of an enum
<p>I have the following <code>enum</code> declaration:</p>

<pre><code>enum MyType
{
   Boolean,
   Int,
   Double,
   String
}
</code></pre>

<p>Then if I have a <code>string abc = "anyvalue"</code>, how can I check whether the <code>abc</code> value is either bool, int, double or string corresponding to a <code>myType</code> enumerated value?</p>
