Skip to content

as

Category: Type

Casts the input to the specified type, returns empty if the cast is not possible

  • Return type: any
  • Parameters:
    • type string — The type to cast to
'123'.as('Integer')
Patient.name.as('HumanName')
Observation.value.as('Quantity')