处理unchecked cast Warning @SuppressWarnings("unchecked") public static <T> T cast(Object obj) { return (T) obj; }