title: Could not cast value of type '__NSCFNumber' (0x1b4520df0) to 'NSString'
body: <pre><code> let uid = FIRAuth.auth()?.currentUser?.uid
  
              let ref = FIRDatabase.database().reference().child("users").child((uid)!)
  
              ref.observeSingleEvent(of: .value, with: { snapshot in
  
                  if let dictionary = snapshot.value as? [String: AnyObject] {
  
                      let htest = dictionary["h"] as! String //error is mainly here signal SIGABRT
  
                      var inthtest = Int(htest)
  
                      if (inthtest==0){
                          self.checkPointsk()
                          print("scanning1")
  </code></pre>
  
  <p>I've tried changing the as String Value To int Value but it still doesn't work </p>