assert(num.parse('42') is int); assert(num.parse('0x42') is int); assert(num.parse('0.50') is double);