Change the number base conversion to match casting.