fun Iterable<ContractState>.sumCash(): <ERROR CLASS>
Sums the cash states in the list, throwing an exception if there are none.