Preconditions seemed good now. Test it on ToNumberTest.java and ToNumber.java