Type Conversions

Conversion Syntax

// optional conversion
v as T
v as? T

// forced conversion
v as! T
Enum(v)

// conversion constructors
String(v)
Number(n)