title: Could not cast value of type 'UITableViewCell' to 'AppName.CustomCellName'
body: <p>I am trying to create a custom cell that expands on tap. I am using this github example: <a href="https://github.com/rcdilorenzo/Cell-Expander" rel="nofollow noreferrer">https://github.com/rcdilorenzo/Cell-Expander</a></p>
  
  <p>This line gives runtime error SIGABRT:</p>
  
  <pre><code>override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
      (cell as! EventTableViewCell).watchFrameChanges()
      //Could not cast value of type 'UITableViewCell' (0x105aa1b80) to 'AppName.EventTableViewCell' (0x104287fe0).
  }
  </code></pre>
  
  <p>I also checked answer from this post, followed three steps, but no luck:
  <a href="https://stackoverflow.com/questions/29812168/could-not-cast-value-of-type-uitableviewcell-to-appname-customcellname">Could not cast value of type &#39;UITableViewCell&#39; to &#39;(AppName).(CustomCellName)&#39;</a></p>
  
  <p>My custom cell class looks like  this:</p>
  
  <pre><code>import UIKit
  
  class EventTableViewCell : UITableViewCell {
  ...
  }
  </code></pre>
  
  <p>cellForRowAtIndexPath:</p>
  
  <pre><code>override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier( "eventCell", forIndexPath: indexPath)
  
      let date = self.eventArray[indexPath.row].startTime
      let calendar = NSCalendar.currentCalendar()
      let minutes = calendar.component(NSCalendarUnit.Minute, fromDate: date)
      var minutesString: String
      if (minutes == 0) {
          minutesString = "00"
      } else {
          minutesString = String(calendar.component(NSCalendarUnit.Minute, fromDate: date))
      }
      let hours = calendar.component(NSCalendarUnit.Hour, fromDate: date)
      cell.textLabel?.text = self.eventArray[indexPath.row].title + " - \(hours):\(minutesString)"
  
      return cell
      }
  }
  </code></pre>
  
  <p>Please help.</p>