Quick actions

cmd+k|ctrl+k

Navigation

Languages

Swift Downcast

Snippet info

Language

Swift

Visibility

public

Author

geoffrey.wiseman

Created

2016-04-29T21:14:57Z

Updated

2016-04-29T21:15:06Z

let intVal:Int = 10;
let up:Any = intVal;
if let down = up as? Int {
    print( "Cast successful." );
}
INFO