it feels it bit weird to create a variable only for this purpose
Do I understand it correctly that you type cast a nil value to a pointer of the type to test against? And then the Elem() works to retrieve the underlaying type as it is now a pointer?
Do I understand it correctly that you type cast a nil value to a pointer of the type to test against?