private static IValue convertDouble(string value) { try { return(DecimalValue.Parse(value)); } catch (FormatException) { return(convertBoolean(value)); } }