Generic null reference, pointer check?

Is there a way to-do a simple generic null reference check that actually works with all types, like structs/floats/bools… and not just the IsValid() that expects a object type, if you want to use the “by reference” call options?

So basically a simple (ref != NULL) check?