Fixed the case of "Any is/as List<*>" for erased cast diagnostic