GetClassDefaults and inherited Classes

Hello

My Question is: how do I get the correct default values of subclasses of parent?

I have done this:

The returned class ‘OutClass’ is StructureItem, which is parent to Pillar.
The problem is that Recipe ID is 0 after that. Test Int has the right value.