def safe_int(string):
    """ Utility function to convert python objects to integer values without throwing an exception """
    try:
        return int(string)
    except ValueError:
        return None