Because serialization through remoting may fail, the probably best option is to convert them to string.