Use NT2_TYPE_IS and remove the std::cout << endl;