# $listItem->toArray()

> Converts the object to an array

- Source: `src/Toolkit/Obj.php#L89` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Toolkit/Obj.php#L89>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$listItem->toArray(): array
```

## Return type

`array`

## Parent class

`Wagnerwagner\Merx\ListItem` inherited from `Kirby\Toolkit\Obj`
