Use Number.doubleValue() instead of (double) Number

Trying to typecast a Number object to a primitive double caused a compile error in my configuration (OpenJDK Runtime Environment (IcedTea 2.5.3)). Apart from that, the (double) typecast was redundant when applied to a double primitive anyway.
As a fix, I use Number#doubleValue() instead of the (double) typecast.