Skip to documentation
SplitScript
  • Language
  • Standard library
  • Guides
  • Migration

SplitScript reference / Language / as

as

keyword

expression as Type

Explicitly converts a value.

Casts are checked statically. String interpolation uses the same Display conversion as an explicit as String cast.

Examples

Convert an integer

let label = level as String
Generated from the SplitScript compiler's documentation catalogs.