@Override
    public Optional<ArrayNode> asArrayNode() {
        return Optional.of(this);
    }
A regex used to extract the expected class in a ClassCastException.

<p>This regex covers the following known cases:

"Cannot cast X to Y"
"class X cannot be cast to class Y ..."
smithy-model/src/main/java/software/amazon/smithy/model/node/ArrayNode.java