static double asDouble ( Object value ) throws ProvidenceConfigException { if ( value instanceof Number ) { return ( ( Number ) value ) . doubleValue ( ) ; } else if ( value instanceof Numeric ) { return ( ( Numeric ) value ) . asInteger ( ) ; } throw new ProvidenceConfigException ( "Unable to convert " + value . getClass ( ) . getSimpleName ( ) + " to a double" ) ; }
Convert the value to a double .