Adding cast precedence.
Fixing paren logic for Cast