title: Cannot convert value of type '[NSObject : AnyObject]' to expected argument type '[String : AnyObject]'
body: <p>Xcode7 and swift, My code:</p>
  
  <pre><code>func loadDefaults() {
      let settingBundle = NSBundle.mainBundle().pathForResource("Settings", ofType: "bundle")
      if settingBundle == nil {
          return
      }
  
      let root = NSDictionary(contentsOfFile: settingBundle!.stringByAppendingString("Root.plist"))
  
      let prefrences = root?.objectForKey("PreferenceSpecifiers") as! Array&lt;NSDictionary&gt;
  
      let defautlsToRegister = NSMutableDictionary(capacity: root!.count)
  
      for prefrence in prefrences {
          let key = prefrence.objectForKey("Key") as! String!
          if key != nil {
              defautlsToRegister.setValue(prefrence.objectForKey("DefaultVale"), forKey: key!)
          }
      }
  
      NSUserDefaults.standardUserDefaults().registerDefaults(defautlsToRegister as [NSObject: AnyObject])
  }
  </code></pre>
  
  <p>Problem code:</p>
  
  <pre><code>NSUserDefaults.standardUserDefaults().registerDefaults(defautlsToRegister as [NSObject: AnyObject])
  </code></pre>
  
  <p>building warnings</p>
  
  <blockquote>
    <p>Cannot convert value of type '[NSObject : AnyObject]' to expected argument type '[String : AnyObject]'</p>
  </blockquote>
  
  <p>change code: </p>
  
  <pre><code>NSUserDefaults.standardUserDefaults().registerDefaults(defautlsToRegister as [String: AnyObject])
  </code></pre>
  
  <p>building warnings</p>
  
  <blockquote>
    <p>'NSMutableDictionary' is not convertible to '[String : AnyObject]'</p>
  </blockquote>
  
  <p>Please teach me how to do? thanks.</p>