def cast_to_int(string):
    """
    Cast string value to int or return None if the string is not convertible to int.
    :param string: string
    :return: int or None if string is not convertable to int
    """
    try:
        return int(string)
    except (ValueError, TypeError) as e:
        return None