chore: Replace as_any functions with trait upcasting (#28221)

Closes #ISSUE

Release Notes:

- N/A
0b75c13034Piotr Osiewicz committed on 4/8/2025, 8:16:27 PM· committed by GitHubparent38ec450
13 files changedLine totals unavailable