this is what I meant. If sparsity is BigDecimal, this conversion is not needed.