def METHOD_NAME(
    self, name: str, default: Union[object, str] = MISSING
) -> str:
    if name not in self._params:
        if default is not MISSING:
            return cast(str, default)
        raise errors.MissingRequiredParameterError(
            "Required parameter %r is missing." % name
        )
    value = self._params[name]
    try:
        if value is None:
            return ""
        if type(value) is list:
            return ",".join(value)
        if type(value) is int or type(value) is float:
            return str(value)
        if type(value) is str:
            return value
    except TypeError:
        pass
    raise errors.InvalidParameterError(
        "Parameter %r must be a string value." % name
    )