Twig is a language for writing typemaps  programs which transform the type of a value while preserving its underlying meaning Typemaps are typically used by tools that generate code  such as multi-language wrapper generators  to automatically convert types as needed