SciPy

scipy.sparse.bsr_matrix.astype

bsr_matrix.astype(t)[source]