Bug 122584 Cascading parameter values can't be displayed properly in html viewer.
Description: Cascading parameter values can't be displayed properly in html viewer. Steps to reproduce: 1. Preview attached design file in html viewer. 2. Click on "change parameter" button in html viewer. 3. Select the first parameter value and expect that the second parameter value in the same cascading parameter group could be displayed, but it is not displayed.
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
/**
	 * Boolean -> Integer
	 * 		true 	-> 1
	 * 		others 	-> 0 
	 * Date -> Integer
	 * 		Date.getTime();
	 * String -> Integer
	 * 		Integer.valueOf();
	 * @param source
	 * @return
	 * @throws BirtException
	 */
	public static Integer toInteger( Object source ) throws BirtException
	{
		if ( source == null )
			return null;
		else 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 );