setAs("CHMfactor", "sparseMatrix", function(from) .Call(CHMfactor_to_sparse, from))