I tried the the following command
but it does not seem to work.
Can any one help to convert a long to an integer

integervalue = Long.intValue(longvalue);