from typing import Tuple


def to_int(s: str) -> Tuple[bool, int]:
    """Convert a string s to an int, if possible."""
    try:
        n = int(s)
        return True, n
    except Exception:
        return False, 0