add isCastError (#95)


diff --git a/CHANGELOG.md b/CHANGELOG.md
index 04e3ba0..8b4f9cb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.12.4
+
+- Add isCastError.
+
 ## 0.12.3+1
 
 - Set max SDK version to <3.0.0, and adjusted other dependencies.
diff --git a/lib/src/error_matchers.dart b/lib/src/error_matchers.dart
index eb185f4..eaa8182 100644
--- a/lib/src/error_matchers.dart
+++ b/lib/src/error_matchers.dart
@@ -7,6 +7,9 @@
 /// A matcher for [ArgumentError].
 const isArgumentError = const TypeMatcher<ArgumentError>();
 
+/// A matcher for [CastError].
+const isCastError = const TypeMatcher<CastError>();
+
 /// A matcher for [ConcurrentModificationError].
 const isConcurrentModificationError =
     const TypeMatcher<ConcurrentModificationError>();
diff --git a/test/type_matcher_test.dart b/test/type_matcher_test.dart
index e20294f..94cbd17 100644
--- a/test/type_matcher_test.dart
+++ b/test/type_matcher_test.dart
@@ -11,6 +11,7 @@
   _test('Map', isMap, {});
   _test('List', isList, []);
   _test('ArgumentError', isArgumentError, new ArgumentError());
+  _test('CastError', isCastError, new CastError());
   _test('Exception', isException, const FormatException());
   _test('FormatException', isFormatException, const FormatException());
   _test('StateError', isStateError, new StateError('oops'));