def astype(self, dtype, **kwargs):
        if dtype == self._dtype:
            return self
        name = tokenize('astype', self, dtype, kwargs)
        return elemwise(lambda x: x.astype(dtype, **kwargs), self,
                        dtype=dtype, name=name)
Copy of the array, cast to a specified type
dataset/ETHPy150Open dask/dask/dask/array/core.py/Array.astype