How to transform data using typepolicies