How to cast object to specialized object in java?

1
In microflows we can use the object type decision in combination with the cast action to get the specialized object. How can we get a specialization of an object in java?   It appears that getting the generalization is quite easy; https://community.mendix.com/link/questions/15012 https://community.mendix.com/link/questions/94444 But I have not found out how to do the reverse, is it even possible?
asked
1 answers
3

you can use (import the proxies: module.proxies.Specialized )

 

Specialized.initialize(getContext(), Generalized.getMendixObject())

 

answered