let b: @convention(block) () -> Int = { 42 } b as AnyObject === b as AnyObject // true
import Foundation let str = "str" let b = str as NSString let c: AnyObject = b // OK
let b: @convention(block) () -> Int = { 42 } b as AnyObject === b as AnyObject // true let c: AnyObject = b // ERROR