Remove compiler warnings
Fixed Jira issue: "ClassCastException of Joda time to java.util.date"