def string_to_int(value):
    """Converts a string to an integer
    Args:
        value(str): string to convert
    Return:
        The integer representation of the nummber. Fractions are truncated. Invalid values return None
    """
    ival = None

    try:
        ival = float(value)
        ival = int(ival)
    except Exception:
        pass

    return ival