Glossary: Kotlin Beyond the Basics
cast
Also written: as
Telling Kotlin to treat a value as another type with `as`. It throws an exception if the value isn't that type.
Glossary: Kotlin Beyond the Basics
Also written: as
Telling Kotlin to treat a value as another type with `as`. It throws an exception if the value isn't that type.