@@ -232,7 +232,7 @@ public T Current
                 }
                 catch (System.InvalidCastException iex)
                 {
-                    throw new System.Exception(string.Format("Error in IEnumeratorOfTWrapper.Current(). Could not cast: {0} in {0}", typeof(T).ToString(), enumerable.Current.GetType().ToString()), iex);
+                    throw new System.InvalidCastException(string.Format("Error in IEnumeratorOfTWrapper.Current(). Could not cast: {0} in {0}", typeof(T).ToString(), enumerable.Current.GetType().ToString()), iex);
                 }
                 catch (System.Exception ex)
                 {