I've realised this by means of a wrapper. ThisA way, the conversion is done without loosing to retain some type safety and with minimum impact on performance is to use a wrapper.
That class works for This example is about Collection, athe List implementationcase would be very similar and maybe one day I'll write itthat too. If someone else comes before me, please let's share the code.