moved cast to primary expression for proper precidence