function castPath(value, object) {
      if (isArray(value)) {
        return value;
      }
      return isKey(value, object) ? [value] : stringToPath(toString(value));
    }
A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).

@private
@param {number|Object} id The timer id or timeout object of the timer to clear.