You need to cast it from Object to Employee. Try... Employee e = (Employee) event.getArgumentArray()[0] e.getSalery() But really you should do an instanceof check first. If you don't know what that is, look it up. David