Iterator compatibility fixed

as casting to array fails for iterator object like doctrine's PersistentCollection and the IdentityInterface already dictates that you should return an array is is IMO safe to remove the cast and with it add the ability to use iterator objects as roles