I will tell you about the previous answer. Look at the comment!
fooobar.com/questions/91649 / ...
As you can see, if you focus on iOS 5+, you should just mark it as transformable and be good. Otherwise, you will have to implement a subclass of NSValueTransformer and pass the name of this class.