Let\'s suppose that i have an Array of objects (Payment) :
listPayments=[Payment(type=\'check\', amount=25),Payment(type=\'cash\', amount=20),Payment(type=\'check