Templates for conversion to C type