Convert values to different types