scipy.sparse.coo_matrix.astype

coo_matrix.astype(t)

This Page