> For the complete documentation index, see [llms.txt](https://docs.tomat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tomat.ai/data-transformation/formulas/conversion-functions/toarray.md).

# ToArray

Converts value to the array type

```mathematica
ToArray("[1, 2, 3]") → [1, 2, 3]
```

#### Inputs

`ToArray(value, [replaceInvalidWith])`

* `value` - A column to convert into an array
* `[replaceInvalidWith]` - **\[optional**: null by default\*\*]\*\* - invalid values will be replaced with this parameter

#### Description

We do not have a direct syntax in our expressions to create an Array, but you can get it as a result of some nodes or functions, such as Split or Nest

Convert String columns to Array before using them in the Unnest node.
