Add sample code for "Define conversions to user-defined types"