Added @SuppressWarnings("unchecked").