title: Get segue.destination as view controller in switch case statement
body: <p>Is it possible to write the following switch statement in such a way that the 'let dentViewController' part is happening on the 'switch segue.destination' or on the 'case is DamageTypeDentViewController:' line? </p>
  
  <p>(I feel I am doing double work with the 'case is' and 'let dentViewController = segue.destination as')</p>
  
  <pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      switch segue.destination {
      case is DamageTypeDentViewController:
          let dentViewController = segue.destination as? DamageTypeDentViewController
          dentViewController.doSomething()
  
      default:
          return
      }
  
  }
  </code></pre>