title: Saving enum values into a dictionary
body: <p>How does one save an enum value to a dictionary?</p>
  
  <p>When I try the following</p>
  
  <pre><code>enum someEnum
  {
      field0 = 0,
      field1 = 1,
      field2 = 2,
  };
  
  enum someEnum someEnumObject;
  </code></pre>
  
  <p>and I try to save it to a dictionary using </p>
  
  <blockquote>
    <p>[NSDictionary dictionaryWithObjectsAndKeys:]</p>
  </blockquote>
  
  <pre><code>someEnumObject, @"enum", 
  </code></pre>
  
  <p>I get this </p>
  
  <blockquote>
    <p>warning: Semantic Issue: Incompatible integer to pointer conversion sending 'enum behaviour' to parameter of type 'id'</p>
  </blockquote>