type) { 'boolean' => filter_var($this->value, FILTER_VALIDATE_BOOLEAN), 'integer' => (int) $this->value, 'json' => json_decode($this->value, true), default => $this->value, }; } }