'How to parse this long to int using typecasting

I want to parse this to int using typecasting

int noOfTest = catDoc.getLong("NO_OF_TESTS").intValue();

How can I do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source