--- title: "toString (Convert to a string)" slug: "calc-function-to-string" updated: 2026-05-12T13:58:23Z published: 2026-05-12T13:58:23Z canonical: "docs.lobstersoftware.com/calc-function-to-string" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # toString (Convert to a string) *See also*: [toNumber (Conversion to native number)](/v1/docs/en/calc-function-to-number), [toBigDecimal (Conversion to large decimal integer)](/v1/docs/en/calc-function-to-big-decimal), [toInteger (Conversion to large integer)](/v1/docs/en/calc-function-to-integer) > [!NOTE] > Attempts to convert a given input value into a string. > > **Note:** As a rule, it is always possible to convert to a string. It depends on the value/object whether the representation is "speaking" or not. > > > [!TIP] > > **Tooltip** > > > > Syntax: *$toString(any)* > > > > | Parameter | Description | > > | --- | --- | > > | `any` | Any value (or object) which should be converted. | > > > > If the input value cannot be converted, nothing (null ) is returned. > > > > Example: $toString({modeOfTransport}) → Converts the value of the field "modeOfTransport" into a string and returns it. ## Syntax *$toString(any)* ## Parameter | Name | Description | | --- | --- | | any | Any value (or object) which should be converted. | ## Return value If the input value cannot be converted, nothing (null) is returned. ## Examples | Syntax | Result | | --- | --- | | $toString({modeOfTransport}) | Converts the value of the field "modeOfTransport" into a string and returns it. | | $toString($input) | Tries to convert the input value of the expression. |