Why can’t I switch over an Any type?
Is there some way to do this?
My use case is I’m trying to do something with system func inspect
. I want a bunch of helper functions in my modules(ie ensureDateInFuture<T, Nat>(msg)) where T is the Message Type of a system func inspect but the issue is that the type changes every time you add a function so there is no way for me to know inside my function what the ultimate form of the Message Type will be.