core/src/main/java/com/orientechnologies/orient/core/sql/OSQLHelper.java
public static Object parseValue(String iValue, final OCommandContext iContext) {
    return parseValue(iValue, iContext, false);
  }
public static Object parseValue(String iValue, final OCommandContext iContext) {
    return parseValue(iValue, iContext, false);
  }
Convert fields from text to real value. Supports: String, RID, Boolean, Float, Integer and NULL.

@param iValue Value to convert.

@return The value converted if recognized, otherwise VALUE_NOT_PARSED