Any idea on how to cast cdt to record type
Discussion posts and replies are publicly visible
You can do it like this
recordType!Student( recordType!Student.fields.name: local!student.name )
Just make sure to replace recordType! with your actual record properties.