(To). To balance or keep accounts. To cast up a line of figures is to add them together and set down the sum they produce. To cast or throw the value of one figure into another till the whole number is totalled.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894