public boolean is(Object type) {
    if (myType == type) {
      return true;
    }
    if (myType != null) {
      return myType.equals(type);
    }
    return false;
  }
public boolean is(Object type)