cpp types conversion