replace direct isa references

This is depreciated. Using object_setClass() instead.