Cast dictionary values