I have a query that returns a field of type array, and I used .as('Names'), to give it an alias. Now I need to assign this to a class. How can I convert the AliasField to datatype MutableSet?
I tried doing:
myClass.names = record.get("Names", MutableSet::Class.java)
But this is of type mutableSet<*>! , I'll need to convert it a nullable type to MutableSet?.