Use valueOf() in number converters to eliminate autoboxing