else if ( source instanceof BigDecimal )
else if ( source instanceof Number )
	public static Integer toInteger( Object source ) throws BirtException	{		if ( source == null )			return null;				if ( source instanceof Integer )		{			return (Integer) source;		}		else if ( source instanceof BigDecimal )		{			int intValue = ( (BigDecimal) source ).intValue( );			return new Integer( intValue );		}		else if ( source instanceof Boolean )		{			if ( true == ( (Boolean) source ).booleanValue( ) )				return new Integer( 1 );			return new Integer( 0 );		}		else if ( source instanceof Date )		{			long longValue = ( (Date) source ).getTime( );			return new Integer( (int) longValue );		}		else if ( source instanceof Double )		{			int intValue = ( (Double) source ).intValue( );			return new Integer( intValue );		}		else if ( source instanceof String )		{			try			{				return new Integer(Double.valueOf((String) source).intValue());			}			catch ( NumberFormatException e )			{				throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS,						new Object[]{						source.toString( ), "Integer"				}, resourceBundle );			}		}		else		{			throw new BirtException( pluginId,					ResourceConstants.CONVERT_FAILS,					new Object[]{							source.toString( ), "Integer"					},					resourceBundle );		}	}