title: How do I encode/decode an enum in Swift 2.0 with Xcode 7
body: <p>With Swift 1.2 under Xcode 6.1, you could use</p>
  
  <pre><code>aCoder.encodeObject(self.myEnumVariable.rawValue, forKey:"myEnumVariable")
  </code></pre>
  
  <p>but this is not valid in Swift 2.0 under Xcode 7 </p>
  
  <pre><code>(error: MyEnum has no member 'rawValue')
  </code></pre>
  
  <p>Can anyone help ?</p>