SciPy

scipy.sparse.csc_matrix.astype

csc_matrix.astype(t)[source]