private Boolean _convertToBoolean ( Object value ) { Boolean booleanValue ; if ( value instanceof Boolean ) { booleanValue = ( Boolean ) value ; } else { booleanValue = Boolean . parseBoolean ( value . toString ( ) ) ; } return booleanValue ; }
Convert the Object to a Boolean .