Simplify the GetType to get an interface instead of a type.
Panic if we cannot get the type.