Bug 145741 Could not set the value of Boolean parameter as 0 or 1
Description: Could not set the value of report scalar boolean parameter as 0 or 1. Steps to reproduce: 1.Create a report parameter, boolean type, Combo Box display type. 2.Add the value as 0, failed. Expect result: Could set integer value to boolean type parameter.
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
public static Object convert( Object source, int toType )
			throws BirtException
	{
		if ( source == null )
			return null;
		
		
		if ( toType == DataType.UNKNOWN_TYPE || toType == DataType.ANY_TYPE )
			return source;
		
		source = JavascriptEvalUtil.convertJavascriptValue( source );
		
		switch ( toType )
		{
			case DataType.INTEGER_TYPE :
				return toInteger( source );
			case DataType.DECIMAL_TYPE :
				return toBigDecimal( source );
			case DataType.BOOLEAN_TYPE :
				return toBoolean( source );
			case DataType.DATE_TYPE :
				return toDate( source );
			case DataType.DOUBLE_TYPE :
				return toDouble( source );
			case DataType.STRING_TYPE :
				return toString( source );
			case DataType.BLOB_TYPE :
				return toBlob( source );
			case DataType.BINARY_TYPE :
				return toBytes( source );