List<Doc> castListDynamicToListDoc(List<dynamic> listDynamic) { final listDoc = listDynamic.map((doc) => doc as Doc); return listDoc.toList(); }