diff --git a/include/audacity/Types.h b/include/audacity/Types.h
index 4b763e39b..63f028964 100644
--- a/include/audacity/Types.h
+++ b/include/audacity/Types.h
@@ -45,7 +45,6 @@
 #include <algorithm>
 #include <wx/string.h>
 #include <wx/arrstr.h>
-#include <type_traits>
 
 // ----------------------------------------------------------------------------
 // TODO:  I'd imagine this header may be replaced by other public headers. But,
@@ -91,7 +90,7 @@ public:
 
    size_t as_size_t() const {
       wxASSERT(value >= 0);
-      wxASSERT(static_cast<std::make_unsigned<type>::type>(value) <= std::numeric_limits<size_t>::max());
+      wxASSERT(value <= std::numeric_limits<size_t>::max());
       return value;
    }