def METHOD_NAME(self, min_confidence: float = 70.0) -> int:
    """
    Convert projection to pyptoj.CRS object.
    Parameters
    ----------
    min_confidence : float, optional
        A value between 0-100 where 100 is the most confident. Default is 70.
        See 'pyproj.CRS.to_epsg' for more details.
    Returns
    -------
    int
        EPSG code.
    Raises
    ------
    CRSConversionError
        Failed to convert projection to EPSG.
    RuntimeError
        Unexpected 'pyproj.to_epsg' return type.
    """
    epsg_code = self.to_pyproj().METHOD_NAME(min_confidence=min_confidence)
    if epsg_code is None:
        raise CRSConversionError(
            f"cannot convert '{self.projection_string}' to EPSG"
        )
    elif isinstance(epsg_code, int):
        return epsg_code
    else:
        raise RuntimeError(
            f"pyproj.to_epsg returned '{type(epsg_code).__name__}', "
            f"expected None or int"
        )