diff --git a/Applications/FileIO/CsvInterface.h b/Applications/FileIO/CsvInterface.h
index a6653f888d31741e399c25f9ca5e7ae5fdb96d24..fc014f3f3997a835ddae341c3ceb34b9a829dc4e 100644
--- a/Applications/FileIO/CsvInterface.h
+++ b/Applications/FileIO/CsvInterface.h
@@ -54,16 +54,14 @@ public:
     template<typename T>
     bool addVectorForWriting(std::string const& vec_name, std::vector<T> const& vec)
     {
-        if (typeid(vec) == typeid(std::vector<std::string>) ||
-            typeid(vec) == typeid(std::vector<double>) ||
-            typeid(vec) == typeid(std::vector<int>))
-        {
-            _vec_names.push_back(vec_name);
-            _data.push_back(vec);
-            return true;
-        }
-        ERR ("Vector type currently not supported.");
-        return false;
+        static_assert(std::is_same<T, std::string>::value
+                || std::is_same<T, double>::value
+                || std::is_same<T, int>::value,
+                "CsvInterface can only write vectors of strings, doubles or ints.");
+
+        _vec_names.push_back(vec_name);
+        _data.push_back(vec);
+        return true;
     }
 
     /// Writes the CSV file.