cpp: add casting snippets