SWQL needs a way to cast an argument of one datatype to another:
CAST(ARG AS DATATYPE [USING FORMAT ''] )
examples:
CAST(ARG AS INT)
CAST("0.0" AS DOUBLE)
CAST(ARG AS DATETIME USING FORMAT 'YYYY-MM-DD HH:mm:ss')
CAST(0.0 AS INT)
More string parsing is also needed: