How do I gather all objects of a actor class in a variable?
For what purpose? What are you going to do with the list?
I suspect you will iterate through the list either to do something with all the actors or with specific types within the list, in which case:
for (Object obj : getObjects(Actor.class))
{
Actor actor = (Actor) obj;
// perform stuff on "actor"
}