FYI: Swift bug raised here: https://bugs.swift.org/browse/SR-3871
I\'m having an odd problem where a cast isn\'t working, but the console shows it as the corre
Still not fixed. My favorite and easiest workaround is by far chain casting:
if let instance = sender as AnyObject as? MyProtocol { }