Could you make it easy for me to understand how it works?
It doesn’t. The whole meaning of Any is that it could be anything. But not just anything can be turned into a Data. That is why protocols like Codable and NSCoding (to which SCNNode conforms) exist — and why Any cannot conform to either of them. These protocols pick out the types that can be turned into a Data.
0
solved How to turn Any into Data