title: How to NOT force cast value from dictionary
body: <p>I have a snapshot(dictionary) that i get from the database that may or may not contain some values for some keys.</p>
  
  <p>How can I safely ask for it and then not have to forcefully cast the variable or forcefully unwrap it later
  This is what I have now:</p>
  
  <pre><code>let eventName = event?[FirebaseIdentifiers.EventName] as! String 
  </code></pre>
  
  <p>But would like to maybe do something like this </p>
  
  <pre><code>let eventName = event?[FirebaseIdentifiers.EventName] as? String 
  </code></pre>
  
  <p>but this would cause me to have to make an if let later in the code so i don't forcefully unwrap it.</p>
  
  <p>Is there another elegant way maybe?</p>
  
  <p>EDIT: to make question a bit clear</p>
  
  <p>This is the original option i have and was hopping there might be something a bit better since I have about 20 variables that would create a bit if let statement that can be quite hard to read</p>
  
  <pre><code> let eventName = event?[FirebaseIdentifiers.taEventName] as? String
  
              if let evName = eventName {
  
              }
  </code></pre>