Adapt conversion functions to work with new AIR jit