added getAsObject to ActorState