In Swift, when casting to a specific subclass and you’re sure you should have either that subclass or nil, would you assert this with as! or treat the wrong type the same as nil?
as! SomeType?
as? SomeType
In Swift, when casting to a specific subclass and you’re sure you should have either that subclass or nil, would you assert this with as! or treat the wrong type the same as nil?
as! SomeType?
as? SomeType