1. A method, comprising; receiving, by a processing unit, a casting-arithmetic instruction that specifies an arithmetic operation to be performed on input data and at least one casting operation of an input casting operation and an output casting operation; upon determining that the casting-arithmetic instruction specifies the input casting operation, performing the input casting operation on identified terms comprising the input data; performing the arithmetic operation on the input data by the processing unit to generate an arithmetic result; and upon determining that the casting-arithmetic instruction specifies the output casting operation, performing the output casting operation on the arithmetic result.