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