public static int parseInt (@Nullable final Object aObject, @Nonnegative final int nRadix, final int nDefault)
  {
    if (aObject == null)
      return nDefault;
    if (aObject instanceof Number)
      return ((Number) aObject).intValue ();
    return parseInt (aObject.toString (), nRadix, nDefault);
  }
public static int parseInt ( @ Nullable final Object aObject , @ Nonnegative final int nRadix , final int nDefault ) { if ( aObject == null ) return nDefault ; if ( aObject instanceof Number ) return ( ( Number ) aObject ) . intValue ( ) ; return parseInt ( aObject . toString ( ) , nRadix , nDefault ) ; }
Parse the given {@link Object} as int with the specified radix.

@param aObject
The object to parse. May be <code>null</code>.
@param nRadix
The radix to use. Must be &ge; {@link Character#MIN_RADIX} and &le;
{@link Character#MAX_RADIX}.
@param nDefault
The default value to be returned if the passed object could not be
converted to a valid value.
@return The default value if the string does not represent a valid value.