Remove unnecessary casts
diff --git a/lib/src/collect.dart b/lib/src/collect.dart
index 9aba764..a7666d9 100644
--- a/lib/src/collect.dart
+++ b/lib/src/collect.dart
@@ -124,7 +124,7 @@
     // message to the socket, the socket might be closed; async - when we are
     // waiting for the response, the socket again closes.
     futures.add(Future.sync(() async {
-      final isolate = await service.getIsolate(isolateRef.id) as Isolate;
+      final isolate = await service.getIsolate(isolateRef.id);
       if (isolate.pauseEvent.kind != EventKind.kResume) {
         await service.resume(isolateRef.id);
       }
@@ -149,7 +149,7 @@
   Future allPaused() async {
     final vm = await service.getVM();
     for (var isolateRef in vm.isolates) {
-      final isolate = await service.getIsolate(isolateRef.id) as Isolate;
+      final isolate = await service.getIsolate(isolateRef.id);
       if (!pauseEvents.contains(isolate.pauseEvent.kind)) {
         throw 'Unpaused isolates remaining.';
       }