def convert_to_valid_int(value):
    """
    Purpose:
        Converts a string to an int.
    Args:
        value - string/float
    Returns:
        value - of type int.
    """
    return int(float(value))