One of our customers did integrate the one trust cookie policy plugin in the DXA 2.2.9 .NET Webapp in Tridion Sites 9.5, one trust plugin placing a date value cookie that breaks the DXA website.
Error Message:
System.InvalidCastException: Unable to cast object of type System.Collection.Generic.Dictionary2[System.String.System.Object] to type
Investigated and found that in DXA Framework below method line breaks due to CIL Library ADF - Claims Deserialize for a cookie date value.
Sdl.Web.Mvc.Configuration.WebRequestContext.IsSessionPreview
var cookies = claimStore?.Get<Dictionary<string, string>>(new Uri(WebClaims.REQUEST_COOKIES));