ToString (Any value)
Name | ToString (Any Value) |
Syntax | ToString (Any value) |
Purpose | To convert a value into a string. |
Description | Returns the string representation of the specified value. If value is null, null is returned. |
Return Type | String |
Parameters | value [System.Object] – Value to be converted |
Example
In this example, we will pass an integer value to the function transformation object using a Variables object.
Where,
value = 123456
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F2%2520%2824%29.png&width=768&dpr=4&quality=100&sign=2334e12&sv=1)
In the output window, you can see that our provided value has been successfully parsed, indicating that the integer has been converted into a string.
This conversion is also evident if we map the output value to a destination object. As shown below, the data type has been converted to string as well: