scipy.sparse.csc_matrix.astype

csc_matrix.astype(t)

This Page