Not sure if we need to start using `dyn_cast_or_null` api.