SciPy

scipy.sparse.spmatrix.astype

spmatrix.astype(t)[source]