Moving getType to CPlusPlus platform backend