public final ObjectNode expectObjectNode() {
        return expectObjectNode((String) null);
    }
Casts the current node to an {@code ObjectNode}.

@return Returns an object node.
@throws ExpectationNotMetException when the node is not an {@code ObjectNode}.
smithy-model/src/main/java/software/amazon/smithy/model/node/Node.java