馃崚 Do not use static_cast to downcast from a base to a derived class
Also use auto in the few cases where the type is cast and obvious.
(cherry picked from commit 2ce4d728)
Also use auto in the few cases where the type is cast and obvious.
(cherry picked from commit 2ce4d728)