public RecordValue expectRecordValue() {
        throw throwTypeMismatch("RecordType");
    }
Returns the current value as a {@link RecordValue}, throwing
{@link RuntimeException} when the value is the wrong type.

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