Bug 151381 [Smoke]The parameter didn't display in the web viewer
Description: Preview a parameter in the web viewer, it can't be previewed. Step to reproduce: 1. new a report and a parameter 2. drag it to the layout 3. preview it in the web viewer Actual result: the parameter is not displayed
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
if ( source instanceof Integer )
		{
			return (Integer) source;
		}
		else if ( source instanceof Number )
		{
			 
			
			int intValue = ( (Number) 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 String )
		{
			try
			{
				return new Integer( Double.valueOf( (String) source )
						.intValue( ) );
			}
			catch ( NumberFormatException e )