def METHOD_NAME(self, exact: bool) -> int:
    """
    Tries to convert to int, If `exact` is true then it will convert only if
    it is a whole decimal number; i.e.: if it has got nothing after the decimal point
    Raises:
        ConversionError: If exact was True but the FVal is actually not an exact integer.
    """
    if exact and self.num.to_integral_exact() != self.num:
        raise ConversionError(f'Tried to ask for exact int from {self.num}')
    return int(self.num)