Binary operator '===' cannot be applied to operands of type 'Any?' and 'UIBarButtonItem!'
<p>The following code used to be able to compile in swift 2.2, no longer in swift 3.0. How do we fix this? </p>

<blockquote>
  <p>Error: Binary operator '===' cannot be applied to operands of type 'Any?' and 'UIBarButtonItem!'</p>
</blockquote>

<pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
    if sender === saveButton { // Error!
        // ... 
    } else if sender === closeButton { // Error!
        // ...
    }
}
</code></pre>