asA method

Expression asA(
  1. Type otherType
)

Returns the result of this as other.

Implementation

Expression asA(Type otherType) =>
    Expression([this, Space(), Code('as'), Space(), otherType, Space()]);