I\'m interfacing with a .NET API in IronPython. The API is returning an object of the wrong type (some kind of generic object). I suspect that the problem is not showing up
To force a conversion you can do:
import clr convertedObject = clr.Convert(someObject, someType)
This will search for and run implicit/explicit conversions if one exists.
Note: available since IronPython 2.6.