public function getDouble() { $this->checkState(); if ($this->type !== PropertyType::DOUBLE) { return $this->valueConverter->convertType($this->value, PropertyType::DOUBLE, $this->type); } return $this->value; }