### Elasticsearch Version

8.11.0

### Installed Plugins

_No response_

### Java Version

_bundled_

### OS Version

MacOS

### Problem Description

The following ESQL statement reports and unhandled error:

```
from index | eval round([1.2])
```

Returns the rror:
```
class_cast_exception - class java.util.ImmutableCollections$ListN cannot be cast to class java.lang.Number (java.util.ImmutableCollections$ListN and java.lang.Number are in module java.base of loader 'bootstrap')
```

### Steps to Reproduce

See above

### Logs (if relevant)

_No response_
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/predicate/operator/arithmetic/DateTimeArithmeticOperation.java
if (isDateTimeOrTemporal(leftType) || isDateTimeOrTemporal(rightType)) {
            if ((leftType == DataTypes.DATETIME && isTemporalAmount(rightType))
                || (rightType == DataTypes.DATETIME && isTemporalAmount(leftType))) {
                return TypeResolution.TYPE_RESOLVED;
            }
            if (leftType == TIME_DURATION && rightType == TIME_DURATION) {
                return TypeResolution.TYPE_RESOLVED;
            }
            if (leftType == DATE_PERIOD && rightType == DATE_PERIOD) {
                return TypeResolution.TYPE_RESOLVED;
            }
            return new TypeResolution(
                format(null, "[{}] has arguments with incompatible types [{}] and [{}]", symbol(), leftType, rightType)
            );
        }
        return super.resolveType();
    }
    /**
     * Override this to allow processing literals of type {@link EsqlDataTypes#DATE_PERIOD} when folding constants.
     * Used in {@link DateTimeArithmeticOperation#fold()}.
     * @param left the left period
     * @param right the right period
     * @return the result of the evaluation
     */
    abstract Period fold(Period left, Period right);
    /**
     * Override this to allow processing literals of type {@link EsqlDataTypes#TIME_DURATION} when folding constants.
     * Used in {@link DateTimeArithmeticOperation#fold()}.