Fix error in CancelableOperation.then (#127)

Replace a dynamic null check with a dynamic type cast, since the target type may be nullable.
diff --git a/lib/src/cancelable_operation.dart b/lib/src/cancelable_operation.dart
index 267c6d1..5d18dd3 100644
--- a/lib/src/cancelable_operation.dart
+++ b/lib/src/cancelable_operation.dart
@@ -103,7 +103,7 @@
       if (!completer.isCanceled) {
         if (isCompleted) {
           assert(result is T);
-          completer.complete(Future.sync(() => onValue(result!)));
+          completer.complete(Future.sync(() => onValue(result as T)));
         } else if (onCancel != null) {
           completer.complete(Future.sync(onCancel));
         } else {