Conversion

Conversion functions.

class forml.io.dsl.function.Cast(value: dsl.Operable, kind: dsl.Any)[source]

Explicitly cast value as the given kind.

Parameters:
value: dsl.Operable

Value to be cast to the given type.

kind: dsl.Any

Type to cast to.

Examples

>>> ETL = Student.select(function.Cast(Student.score, dsl.Integer()))