title: How to decode string using NSSecureCoding in Swift 3?
body: <p>I am currently trying the iOS 10 Beta and decided to convert my Swift code to Swift 3. Until now, I was able to securely decode a String using</p>
  
  <pre><code>coder.decodeObjectOfClass(NSString.self, forKey: CoderKeys.code) as! String
  </code></pre>
  
  <p>After the conversion to Swift 3, Xcode is giving me the following error:</p>
  
  <pre><code>'decodeObjectOfClass(_:forKey:)' is unavailable in Swift: use generic 'decodeObjectClass(_:forKey:)'
  </code></pre>
  
  <p>As I mentioned, I'm using NSSecureCoding, so unfortunately <code>decodeObject(forKey: String)</code> won't do. Is this a beta bug? What am I missing?</p>