Core/Toolbox/Converter/ObjectToArray.php
function convert(): array
    {
        if (!is_object($this->value)) {
            Throw new ConverterException('The given value is no object.');
        }

        return $this->result = $this->toArray($this->value);
    }
function convert(): array
    {
        if (!is_object($this->value)) {
            Throw new ConverterException('The given value is no object.');
        }

        return $this->result = $this->toArray($this->value);
    }
Converts the set object and it's public members recursively into an array.

@return array