public static Object toGUId(Object o, Object defaultValue) {
	String str = toString(o, null);
	if (str == null) return defaultValue;

	if (!Decision.isGUId(str)) return defaultValue;
	return str;
    }
public static Object toGUId ( Object o , Object defaultValue ) { String str = toString ( o , null ) ; if ( str == null ) return defaultValue ; if ( ! Decision . isGUId ( str ) ) return defaultValue ; return str ; }
cast a Object to a GUID

@param o Object to cast
@param defaultValue
@return casted Query Object