def trint(inthing):
    """
    Turn something input into an integer if that is possible, otherwise return None

    :param inthing:
    :return: integer or None
    """
    try:
        outhing = int(inthing)
    except:
        outhing = None
    return outhing