Swift binary operator == cannot be applied to two t operands