public static Cons javaTranslateCast(Cons tree) {
    { Stella_Object expression = tree.rest.value;
      Surrogate type = StandardObject.typeSpecToBaseType(((StandardObject)(tree.rest.rest.value)));

      if (Surrogate.subtypeOfP(type, Stella.SGT_STELLA_NUMBER) &&
          Stella_Object.isaP(expression, Stella.SGT_STELLA_NUMBER_WRAPPER)) {
        return (((Cons)(Stella_Object.javaTranslateATree(NumberWrapper.coerceNumericConstant(((NumberWrapper)(expression)), type)))));
      }
      tree.firstSetter(Stella.SYM_STELLA_JAVA_CAST);
      tree.secondSetter(Stella_Object.javaTranslateATree(tree.rest.value));
      tree.thirdSetter(StandardObject.javaTranslateTypeSpec(((StandardObject)(tree.rest.rest.value))));
      return (tree);
    }
  }