title: AnyObject to string in swift
body: <p>I am stuck on this code! I want to remove the optionals what is the best way to do that?
  I tried to change the AnyObject in to NSString but I don't know how. </p>
  
  <p>What is the best way to do this?</p>
  
  <p>And my second question is how do I store this in the core data? Is there a cool framework for this?</p>
  
  <pre><code>Alamofire.request(.GET, urlDb)
          .responseJSON { (request, response, json, error) in
              println(error)
              //println(json)
  
              if let contactGroups : AnyObject! = json{
                  //println("Contact groepen")
                  var contactGroups = contactGroups["contact_groups"] as NSArray
  
                  for cG in contactGroups {
                      println(cG["group_id"]!)
                      //println(cG["contact_id"]!)
                  }
              }
  
              if let contacts : AnyObject = json{
                  //println(contacts["contacts"])
                  println("Contacten")
                  var contacts = contacts["contacts"] as NSArray
  
                  for c in contacts{
                      println(c["id"])
                      println(c["name"])
                  }
              }
          }    
  </code></pre>
  
  <p>This is the console log</p>
  
  <pre><code> nil
   Optional(1)
   Optional(2)
   Contacten
   Optional(1)
   Optional(Dirk Sierd de Vries)
  </code></pre>
  
  <p>I hope you guys can help me with my school project :D</p>