Skip to main content
The table summarizes the conversion functions available in APL.
Function NameDescription
dynamic_to_jsonConverts a scalar value of type dynamic to a canonical string representation.
ensure_fieldEnsures the existence of a field and returns its value or a typed nil if it doesn’t exist.
isboolReturns a value of true or false if the expression value is passed.
toarrayConverts input to array.
toboolConverts input to boolean (signed 8-bit) representation.
todatetimeConverts input to datetime scalar.
todoubleConverts the input to a value of type real. todouble and toreal are synonyms.
todynamicConverts input to dynamic.
tohexConverts input to a hexadecimal string.
tointConverts the input to an integer value (signed 64-bit) number representation. toint and tolong are synonyms.
tolongConverts input to long (signed 64-bit) number representation. toint and tolong are synonyms.
torealConverts the input to a value of type real. todouble and toreal are synonyms.
tostringConverts input to a string representation.
totimespanConverts input to timespan scalar.