public static boolean bootstrapIsaP(Stella_Object x, Surrogate type) {
    return ((x != null) &&
        ((x.primaryType() == type) ||
         ((type.surrogateValue != null) &&
          ((x.primaryType().surrogateValue != null) &&
           Stella_Object.isaP(x, type)))));
  }