The rows in these columns are of Struct type. I want them in a different type
It's unclear what you're actually asking here.
I've tried playing around with the following but keep failing
The code examples shown don't seem to have anything to do with "different types" and "keep failing" lacks any details about specific error messages.
Can you show an actual runnable code example with inputs / expected outputs?