Fix cast operator precedence issue.