Handling types conversions in interop scenarios