Fix valueFromString to accept NSIntegers.