Added XPLedger and Int conversion safety