Add sample code for conversion

Signed-off-by: Igor Popov <igor@igorpopov.io>