Force cast BigInteger to Double if it's less than Double.MAX_VALUE

For now, until we start handling BigIntegers and BigDecimals, if the BigInteger value is less than Double.MAX_VALUE, force cast it to double.