Fix casting precedence.