public EndpointValue expectEndpointValue() {
        throw throwTypeMismatch("EndpointType[]");
    }
Returns the current value as an {@link EndpointValue}, throwing
{@link RuntimeException} when the value is the wrong type.

@return returns an endpoint value
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/evaluation/value/Value.java