//
// Convert value to an ORBacus Any - the JDK implementation
// of TypeCode.equivalent() raises NO_IMPLEMENT
//
Any val = null;
try {
val = (Any) value;
} catch (ClassCastException ex) {
try {
val = new Any(value);
} catch (NullPointerException e) {
throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
}
}
if (!val._OB_type().equivalent(type_))
throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
try {
java.math.BigDecimal f = val.extract_fixed();
if (f == null || f.scale() > origType_.fixed_scale())
throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
value_ = f;
} catch (org.omg.CORBA.TypeCodePackage.BadKind ex) {