def try_get(src, getter, expected_type=None):
    """Getter for Object with type checking.

    Args:
        src (object): Object for getter.
        getter (lambda): Lambda expression for getting item from Object.
        expected_type (type, optional): Expected type from the getter. Defaults to None.

    Returns:
        expected_type: Value of getter for Object.
    """
    if not isinstance(getter, (list, tuple)):
        getter = [getter]
    for get in getter:
        try:
            v = get(src)
        except (AttributeError, KeyError, TypeError, IndexError):
            pass
        else:
            if expected_type is None or isinstance(v, expected_type):
                return v