The `as_any` pattern is not needed any more since trait upcasting was stabilized in Rust 1.86. See #205.