title: Compare two objects that contain enum values of the same enum type
body: <p>I have an enum type defined: EnumType
  Now imagine</p>
  
  <pre><code>object A = EnumType.Value1;
  object B = EnumType.Value2;
  </code></pre>
  
  <p>I would like to make the comparison ( A == B ) give me the correct result independent of the type of Enum used. In the comparison, the object will always contain enums, and both will be of the same type.</p>
  
  <p>How can I achieve this?</p>