Avatar
@swift-5.3.3 let a: [Int?] = [nil] let b = a.randomElement()! print(type(of: b)) if case let c as Int = b { print("OK", c) }