def try_int(num_string):
    """
    short hand cast to number

    :param num_string:
    :return: int or None
    """
    if num_string is not None:
        try:
            return int(num_string)
        except ValueError:
            pass
    return None