I think I\'m looking at some outdated code:
@IBAction func stockLevelDidChange(sender: AnyObject) { if var currentCell = sender as? UIView {
Actually the as? are all fine. The problem is this line:
as?
if let id = cell.productId?
Just remove the question mark at the end of that. It makes no sense.