If this is a simple cast job (it doesn't seem to be), I'd use an explicit operator. There are some nice examples in MSDN documentation about this:
convert-object-to-another-class
939c2ea5af
how to convert one class object to another class object in java, how to convert one class object to another class object in c#, java convert object to another class, php convert object to another class, convert one class object to another typescript, convert object to another class java, convert object to another class c#
Comments