NS to int