function cast$1(x, dtype) {
	  return x.asType(dtype);
	}
Casts a tensor to a different dtype and returns it.
@param x Input tensor.
@param dtype String: 'float32'|'int32'|'bool'.
@returns Tensor of the specified `dtype`.