public function getAsArray()
    {
        if ($result = $this->getDecodedContent() === null) {
            throw new Doozr_Configuration_Reader_Exception(
                'Please read() a configuration file before you try to access it as array.'
            );
        }

        if ($result !== null) {
            $result = object_to_array($result);
        }

        return $result;
    }