Added unchecked cast warnings.