throw new BirtException( pluginId, ResourceConstants.INVALID_TYPE, resourceBundle );
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 ); default : throw new BirtException( pluginId, ResourceConstants.INVALID_TYPE, resourceBundle ); }
	public static Object convert( Object source, Class toTypeClass )		throws BirtException	{		if ( toTypeClass == DataType.getClass( DataType.ANY_TYPE ) )			return source;		if ( toTypeClass == Integer.class )			return toInteger( source );		if ( toTypeClass == BigDecimal.class )			return toBigDecimal( source );		if ( toTypeClass == Boolean.class )			return toBoolean( source );		if ( Date.class.isAssignableFrom( toTypeClass ) )			return toDate( source );		if ( toTypeClass == Double.class )			return toDouble( source );		if ( toTypeClass == String.class )			return toString( source );		if ( toTypeClass == Blob.class )			return toBlob( source );				throw new BirtException( pluginId,				ResourceConstants.INVALID_TYPE,				resourceBundle );	}