I was wondering if there is some sort of check to detect the type of a variable ?
Like string, int, vector or entity.

I have a concept for a reliably working type detector which I am going to code unless there is something that can do this already.
The purpose is that in the coop mod parameters sometimes need to be a entity or a int, I don't want to have two functions and I don't want to convert all the time.