Try working out the expressions by hand.
Use the parenthesis to control the order that the expressions are evaluated.
The casting will be done before the arithmetic operator.