This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am writing an method which take int as input. I want to ensure that the argument received is exactly of int type and not of byte, short, char. Like that I am writing many methods in which I expect the exact variables. How can I disable the automatic type conversion at the method level, and how do I check the exact type else give the error to calling function and return.