 <p>As an alternative to the guard statement, you could also use the similar <code>if let</code> construct:</p> <pre><code>if let item = item["display-name"] as? String { print(item) } else { print("No display name") } </code></pre>