prorm API Reference
    Preparing search index...

    Interface CastExpression

    Represents a CAST expression for type casting SQL: CAST(value AS type)

    // CAST('2023-01-01' AS DATE)
    cast('2023-01-01', 'DATE')

    // CAST(column AS INTEGER)
    cast(col('amount'), 'INTEGER')
    interface CastExpression {
        __type: "cast";
        value: any;
        type: string;
    }
    Index
    __type: "cast"
    value: any
    type: string