The answer for conversion of char to int or long is simple casting.
For example:- if you would like to convert Char '0' into long.
Follow simple cast
Char ch='0';
String convertedChar= Character.toString(ch); //Convert Char to String.
Long finalLongValue=Long.parseLong(convertedChar);
Done!!