SciPy

scipy.sparse.coo_matrix.astype

coo_matrix.astype(t)[source]