BTW you can use this method for serializing such UDTs.