added @Enumerated to actor type. Fixed class cast issue. #12