> ## Documentation Index
> Fetch the complete documentation index at: https://axiom.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Conversion functions

> Learn how to use and combine different conversion functions in APL

The table summarizes the conversion functions available in APL.

| **Function Name**                                                               | **Description**                                                                                                  |
| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [dynamic\_to\_json](/apl/scalar-functions/conversion-functions/dynamic-to-json) | Converts a scalar value of type dynamic to a canonical string representation.                                    |
| [ensure\_field](/apl/scalar-functions/conversion-functions/ensure-field)        | Ensures the existence of a field and returns its value or a typed nil if it doesn’t exist.                       |
| [isbool](/apl/scalar-functions/conversion-functions/isbool)                     | Returns a value of true or false if the expression value is passed.                                              |
| [toarray](/apl/scalar-functions/conversion-functions/toarray)                   | Converts input to array.                                                                                         |
| [tobool](/apl/scalar-functions/conversion-functions/tobool)                     | Converts input to boolean (signed 8-bit) representation.                                                         |
| [todatetime](/apl/scalar-functions/conversion-functions/todatetime)             | Converts input to datetime scalar.                                                                               |
| [todouble](/apl/scalar-functions/conversion-functions/todouble)                 | Converts the input to a value of type `real`. `todouble` and `toreal` are synonyms.                              |
| [todynamic](/apl/scalar-functions/conversion-functions/todynamic)               | Converts input to dynamic.                                                                                       |
| [tohex](/apl/scalar-functions/conversion-functions/tohex)                       | Converts input to a hexadecimal string.                                                                          |
| [toint](/apl/scalar-functions/conversion-functions/toint)                       | Converts the input to an integer value (signed 64-bit) number representation. `toint` and `tolong` are synonyms. |
| [tolong](/apl/scalar-functions/conversion-functions/toint)                      | Converts input to long (signed 64-bit) number representation. `toint` and `tolong` are synonyms.                 |
| [toreal](/apl/scalar-functions/conversion-functions/todouble)                   | Converts the input to a value of type `real`. `todouble` and `toreal` are synonyms.                              |
| [tostring](/apl/scalar-functions/conversion-functions/tostring)                 | Converts input to a string representation.                                                                       |
| [totimespan](/apl/scalar-functions/conversion-functions/totimespan)             | Converts input to timespan scalar.                                                                               |
