Remove thrust casting from static_cast_with_inter_type (#39905)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/39905
Reviewed By: ZolotukhinM
Differential Revision: D22510307
Pulled By: ngimel
fbshipit-source-id: 34357753fca4f2a8d5e2b1bbf8de8d642ca9bb20