convert.toNumber() now uses the toNumber behavior if defined