else if ( source instanceof Integer )
else if ( source instanceof Number )
	public static Boolean toBoolean( Object source ) throws BirtException	{		if ( source == null )			return null;				if ( source instanceof Boolean )		{			return (Boolean) source;		}		else if ( source instanceof Integer )		{			int intValue = ( (Integer) source ).intValue( );			if ( intValue == 0 )				return new Boolean( false );			return new Boolean( true );		}		else if ( source instanceof BigDecimal )		{			int intValue = ( (BigDecimal) source ).intValue( );			if ( intValue == 0 )				return new Boolean( false );			return new Boolean( true );		}		else if ( source instanceof Double )		{			int intValue = ( (Double) source ).intValue( );			if ( intValue == 0 )				return new Boolean( false );			return new Boolean( true );		}		else if ( source instanceof String )		{			if ( ( (String) source ).equalsIgnoreCase( "true" ) )				return Boolean.TRUE;			else if ( ( (String) source ).equalsIgnoreCase( "false" ) )				return Boolean.FALSE;			else			{				try				{					if ( Integer.parseInt( (String) source ) == 0 )						return Boolean.FALSE;					else						return Boolean.TRUE;				}				catch ( NumberFormatException e )				{					throw new BirtException( pluginId,							ResourceConstants.CONVERT_FAILS,							new Object[]{									source.toString( ), "Boolean"							} );				}			}		}		else		{			throw new BirtException( pluginId,					ResourceConstants.CONVERT_FAILS,					new Object[]{							source.toString( ), "Boolean"					},					resourceBundle );		}	}