title: Logging a Swift enum using NSLog
body: <p>I’m trying to log an enum:</p>
  
  <pre><code>enum CKAccountStatus : Int {
      case CouldNotDetermine
      case Available
      case Restricted
      case NoAccount
  }
  
  NSLog("%i", CKAccountStatus.Available)
  </code></pre>
  
  <p>The compiler complains:</p>
  
  <pre><code>Type 'CKAccountStatus' does not conform to protocol 'CVarArg'
  </code></pre>
  
  <p>Why? I have tried to cast the value:</p>
  
  <pre><code>NSLog("%i", CKAccountStatus.Available as Int)
  </code></pre>
  
  <p>But that doesn’t fly either:</p>
  
  <pre><code>Cannot convert the expression's type '()' to type 'String'
  </code></pre>