/// <summary> /// Converts a string to an object of the specified type. /// </summary> /// <param name="str">The string to convert.</param> /// <typeparam name="T">The destination type.</typeparam> /// <param name="culture">The culture identifier for number and dates.</param> /// <returns>The converted object.</returns> public static T ConvertFromString <T>(string str, string culture = null, string format = null) { return((T)ConvertFromString(str, TypeBase.FromAnyNativeType <T>(), culture: culture, format: format)); }