public function getArray()
    {
        $res = $this->driverInstance->getArray();
        if (!$this->isArray($res) && !$this->isArrayObject($res)) {
            throw new YamlException('YamlInterface method getArray() must return an array or ArrayObject.');
        }

        return StdObjectWrapper::toArray($res);
    }