With the generic conversion functions, this boils down to the pretty trivial http://reviews.llvm.org/rL237161. Closing. http://reviews.llvm.org/D4927 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/