function castCurry(name, func, n) {
    return (forceCurry || (config.curry && n > 1))
      ? curry(func, n)
      : func;
  }
Casts `func` to a curried function if needed.

@private
@param {string} name The name of the function to inspect.
@param {Function} func The function to inspect.
@param {number} n The arity of `func`.
@returns {Function} Returns the cast function.