if (boxed.isNumeric()) {
try {
return doFunction(floatNode.callFloat(frame, boxed, "to_f", null));
} catch (UseMethodMissingException e) {
throw new RaiseException(getContext().getCoreLibrary().typeErrorCantConvertInto(
boxed.getLogicalClass().getName(),
getContext().getCoreLibrary().getFloatClass().getName(),
this));
}
} else {
CompilerDirectives.transferToInterpreter();
throw new RaiseException(getContext().getCoreLibrary().typeErrorCantConvertInto(
boxed.getLogicalClass().getName(),
getContext().getCoreLibrary().getFloatClass().getName(),
this));
}
}