Inplace version of cast API, the output Tensor will be inplaced with input x. Please refer to cast.
cast
x