title: Enumeration to boolean casting question
body: <p>I have the following enumeration:</p>
  
  <pre><code>public enum MyEnum
  {
      MyTrue,
      MyFalse
  }
  </code></pre>
  
  <p>And I'd like to eventually be able to automatically convert my enumeration to a boolean value, with a simple line like this:</p>
  
  <pre><code>MyEnum val = MyEnum.MyTrue;
  bool IsThisTrue = val;
  </code></pre>
  
  <p>Currently, I have to do this:</p>
  
  <pre><code>bool IsThisTrue = val == MyEnum.MyTrue;
  </code></pre>
  
  <p>Is there some mechanism I can apply to my enumeration to allow for native enum->bool casting?  I'm wondering if some variant of a typeconverter is what I need or not.</p>
  
  <p>Thanks</p>
  
  <p><strong>Edit:</strong>  There is a reason for my custom enumeration.  Since this properties are all eventually bound to a property grid, we have mechanisms put in place to bind all of our custom enumerations to multi-lingual strings in resources files.  We need all of the enum's we're using to be in a specific namespace, hence the "MyEnum" class.</p>