Skip to main content

Type Casting

Type casting is a way to check the type of an instance, or to treat that instance as a different superclass or subclass from somewhere else in its own class hierarchy.

Casting Types

Type casting in Atem is provided by three operators: as, as? and as!.

Checking Types