Parentheses were not wrong, needed to typecast