title: Swift cannot convert value of type to expected argument in Realm
body: <p>I'm trying to wrap my head around the Realm API in Swift which looks extremely promising. I'm trying some demo code in their documentation and I keep getting the same error.
  I have a Dog.swift file with the following:</p>
  
  <pre><code>import Foundation
  class Dog {
      dynamic var name = ""
      dynamic var age = 0
  }
  </code></pre>
  
  <p>In my main ViewController.swift, I have the following to create an instance of Dog and try to save it. The issue is that the realm.add line is not compiling because it "Cannot convert value of type 'Dog' to expected argument type 'Object'"</p>
  
  <pre><code>import UIKit
  import RealmSwift
  
  class ViewController: UIViewController {
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
  
      let myDog = Dog()
      myDog.name = "Rex"
      myDog.age = 10
  
      // Get the default Realm
      let realm = try! Realm()
      // You only need to do this once (per thread)
  
      // Add to the Realm inside a transaction
      realm.write {
          realm.add(myDog)
      }
    }
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated. Thanks!</p>