def format_address_width(address_width: str | None) -> int | None:
    """Cast address width to an int.

    Args:
        address_width: The address width.

    Returns:
        Address width int
    """
    try:
        return int(address_width) if address_width else None
    except ValueError:
        return None
Cast address width to an int.

    Args:
        address_width: The address width.

    Returns:
        Address width int
    
reflex/utils/prerequisites.py