public Optional<BooleanNode> asBooleanNode() {
        return Optional.empty();
    }
Gets the node as an BooleanNode if it is an boolean.

@return Returns the optional BooleanNode.
smithy-model/src/main/java/software/amazon/smithy/model/node/Node.java