How to get UClass pointer from typename

I want to be able to store a UClass pointer to a given class without explicitly needing to create an instance of the class to do so (to call its GetClass() function). Anyone know if there is a way to do that?

Something like…
UClass *MyClassVariable = GetClass();

Just answered my own question:

class MyClass;

UClass *MyClassVariable = MyClass::StaticClass();