Add typemaps for CTA internal automatic typecasting.