protected function parseChoiceVal($value)
    {
        if ($value instanceof ModelInterface) {
            $value = $value->id();
        }

        if ($value instanceof Closure) {
            $value = $value();
        }

        if ($value instanceof DateTimeInterface) {
            $value = $value->format('Y-m-d-H:i');
        }

        if (method_exists($value, '__toString')) {
            $value = strval($value);
        }

        return $value;
    }