removed casting of the objects.  This was only needed for primatives