title: Dynamic typealias Swift 3
body: <p>I'm trying to set a <code>typealias</code> with a conditional like this:</p>
  
  <pre><code>typealias dataType = (x == y ? ButtonTableCell : InputTableCell)
  </code></pre>
  
  <p>Where both <code>ButtonTableCell</code> and <code>InputTableCell</code> are classes, so later I can use <code>dataType</code> like this:</p>
  
  <pre><code>let cell = tableView.dequeueReusableCell(withIdentifier: "buttonCell", for: indexPath as IndexPath) as! dataType
  </code></pre>
  
  <p>I don't know if this is possible in Swift</p>