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
new Object[]{
							source.toString( ), "Blob"
					},
					resourceBundle );
	}
	/**
	 * @param source
	 * @return byte array
	 * @throws BirtException
	 */
	public static byte[] toBytes( Object source ) throws BirtException
	{
		
		if ( source == null )
			return null;
		if ( source instanceof byte[] )
			return (byte[]) source;
		else
			throw new BirtException( pluginId,
					ResourceConstants.CONVERT_FAILS,
					new Object[]{
							source.toString( ), "Binary"
					},
					resourceBundle );
	}
	
	/**
	 * Converts a Java class to its corresponding data type constant
	 * defined in DataType 
	 */