src: use As() instead of Cast() for conversions
#40287
+19
−21
Closed