def filter_float(value):
    """Change a floating point value that represents an integer into an
    integer."""
    if isinstance(value, float) and float(value) == int(value):
        return int(value)
    return value