Fixed casting error when parsing JSONObjects in Action.java