def METHOD_NAME(
    log_age: int | str, enable_delete: bool | str, params: dict
) -> tuple[int, bool]:
    if not isinstance(log_age, int):
        log_age_param = params.get("maxLogAgeInDays")
        try:
            log_age = int(log_age_param)
            logger.info(
                f"Maximum log age overwritten with the dag run "
                f"parameter of {log_age_param} days"
            )
        except TypeError:
            log_age = MAX_LOG_AGE_IN_DAYS
    if not isinstance(enable_delete, bool):
        enable_delete_param = params.get("enableDelete", ENABLE_DELETE)
        if isinstance(enable_delete_param, bool):
            enable_delete = enable_delete_param
        else:
            enable_delete = {"true": True, "false": False}.get(
                enable_delete_param.lower(), ENABLE_DELETE
            )
    return log_age, enable_delete