Change allowed type to cpp