I have a snapshot(dictionary) that i get from the database that may or may not contain some values for some keys.

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:

```
let eventName = event?[FirebaseIdentifiers.EventName] as! String 

```

But would like to maybe do something like this 

```
let eventName = event?[FirebaseIdentifiers.EventName] as? String 

```

but this would cause me to have to make an if let later in the code so i don't forcefully unwrap it.

Is there another elegant way maybe?

EDIT: to make question a bit clear

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

```
 let eventName = event?[FirebaseIdentifiers.taEventName] as? String

            if let evName = eventName {

            }

```