Updated ObjectType to use type and object arrays on cast and isAssignableFrom calls. Should probably change the return type back and use a List that the used elements can be removed from instead of returning a new array.