Have a helper that provides the appropriate coercion function for each type. Ie, avoid people having to write this: // Coercion() if (fieldType == FormulaType.String) { // No coercion needed } else if (fieldType == FormulaType.Number) { sb.Append("Value"); } else if (fieldType == FormulaType.Guid) { sb.Append("GUID"); } else if (fieldType == FormulaType.DateTime) { sb.Append("DateTimeValue"); } else if (fieldType == FormulaType.Date) { sb.Append("DateValue"); } else if (fieldType == FormulaType.Boolean) { sb.Append("Boolean"); }