[Refactor] Removed warnings for cast from Object to generic types (collections, maps...) by adding @SuppressWarnings("unchecked") annotations.