// "Replace '(FooBar)foo' with 'foobar'" "true"

class FooBar {
  public int baz;

  int method(Object foo) {
    FooBar foobar = (FooBar)foo;
    if (baz == 0) {
      return ((FooBar<caret>)foo).baz;
    }
    return -1;
  }
}