remove the objTo* functions and replace them with proper unboxing
import the runtime.NativeObjects object, cuts down on the typing