[machinery] Remove CastR<>()
6 files changed