title: how to get Number value form dictionary
body: <p>I am accessing data from JSON and storing it in dictionary 1 and passing this dictionary 1 to another view controller's dictionary 2. The view controller has all the details mainly 12 labels. I have managed to access the strings but i am not able to get the number values. Please have a look at the code.</p>
  <h3>DetailsViewController</h3>
  <pre><code>var dict2 = [String : AnyObject]()
  
  override func viewWillAppear(animated: Bool) {
      super.viewWillAppear(animated)       
      self.lblTopName.text = self.dict2[&quot;toponymName&quot;] as? String
      self.lblFcodeName.text = self.dict2[&quot;fcodeName&quot;] as? String
      self.lblName.text = self.dict2[&quot;name&quot;] as? String
      self.lblCountryCode.text = self.dict2[&quot;countrycode&quot;] as? String
      self.lblFCL.text = self.dict2[&quot;fcl&quot;] as? String
      self.lblFclName.text = self.dict2[&quot;fclName&quot;] as? String
      self.lblWikipedia.text = self.dict2[&quot;wikipedia&quot;] as? String
      self.lblFcode.text = self.dict2[&quot;fcode&quot;] as? String
      self.lblLongitude.text = self.dict2[&quot;lng&quot;] as? String
  </code></pre>
  <p>Note. The last line of code that is longitude a number value. If I replace <code>String</code> with <code>NSNumber</code> it gives me the following error:</p>
  <blockquote>
  <p>Cannot assign value of type NSNumber to type String</p>
  </blockquote>