title: Is it possible to create a generic Int-to-Enum Converter?
body: <p>I'd like to be able to say</p>
  
  <pre><code>&lt;DataTrigger Binding="{Binding SomeIntValue}" 
               Value="{x:Static local:MyEnum.SomeValue}"&gt;
  </code></pre>
  
  <p>and to have it resolve as <code>True</code> if the <code>int</code> value is equal to <code>(int)MyEnum.Value</code></p>
  
  <p>I know I could make a <code>Converter</code> that returns <code>(MyEnum)intValue</code>, however then I'd have to make a converter for every Enum type I use in my DataTriggers.</p>
  
  <p>Is there a generic way to create a converter that would give me this kind of functionality?</p>