I can only guess, but please correct me if I am wrong:
[encoder encodeValueOfObjCType:@encode(NSDecimal) at:&theDecimal];
where encoder is an instance of NSCoder.
But one thing is strange: Why is there no key to provide? How would I get that back then, without a key?