FEEL Custom Function gets JavaCollectionWrappers.MapWrapper as argument

I am currently trying to implement a Custom Function for FEEL that should take a complex Java object from a process variable as an argument. In my class, which implements FeelCustomFunctionProvider, I actually get an object of type JavaCollectionWrappers.MapWrapper as argument. In this map, however, I can access the Java objects it contains as normal. Is it possible that the root object is also passed as the original Java object instead of as an object of type MapWrapper?