from typing import Any


def icontains(query: str, field_name: str, object: Any) -> bool:
    """
    Check if query is in value of the object (Not Case Sensitive)
    """
    return str(query).casefold() in str(getattr(object, field_name)).casefold()