public function toArray()
    {
        $arrayResult = array();
        for ($i = 0; $i < $this->length(); ++$i) {
            if ($this->offsetExists($i)) {
                $arrayResult[] = $this->offsetGet($i)->toArray();
            }
        }

        return $arrayResult;
    }