Object oa = ((ObjectToken) a).getValue();
Object ob = ((ObjectToken) b).getValue();
if (oa instanceof Set && ob instanceof Collection) {
Set result = new HashSet((Set) oa);
result.retainAll((Collection) ob);
return new ObjectToken(result);
} else {
throw new InterpreterException(
"Unknown object types: expected Set and Collection.");
}