title: How to remove Optional from String Value Swift
body: <p>I'd like to use a String value without the optional extension. I parse this data from firebase using the following code:</p>
  
  <pre><code>Database.database().reference(withPath:
      "Locations").child("Cities").observe(.value, with: { (snapShot) in
          if snapShot.exists() {
              let array:NSArray = snapShot.children.allObjects as NSArray
  
              for child in array {
                  let snap = child as! DataSnapshot
  
                  let cityName = snap.key
                  let cityNameString = "\(cityName)"
                  if snap.value is NSDictionary {
                      let data:NSDictionary = snap.value as! NSDictionary
                      let lat = data.value(forKey: "lat")
                      let lng = data.value(forKey: "lng")
                      let radius = data.value(forKey: "radius")
                      let latstring = "\(lat)"
                      let lngstring = "\(lng)" 
                      let radiusstring = "\(radius)" 
  
                      let city = CityObject(name: cityNameString , lat: latstring , lng: lngstring, radius: radiusstring)
                      print("Value is", laststring)  
                      self.selectCity(cityObject: city)
                  }                            
  
              }
          }
      })
  </code></pre>
  
  <p>after parsing this data i try to print e.g. the latstring and get following outpup:</p>
  
  <blockquote>
    <p>Value is Optional(52.523553)</p>
  </blockquote>
  
  <p>my CityObject looks like the following:</p>
  
  <pre><code>class CityObject{
  var name: String?
  var lat: String?
  var lng: String?
  var radius: String?
  
  init(name: String?, lat: String?, lng: String?, radius: String?){
      self.name = name
      self.lat = lat
      self.lng = lng
      self.radius = radius
  }
  </code></pre>