public class MainClass{ public static void main(String [] args) { long l = 56L; byte b = (byte)l; System.out.println("The byte is " + b); } }
The byte is 56