class CastTest { /** Integers */ public static short testIntToShort(int value) { return (short) value; } public static double testIntToDouble(int value) { return (double) value; } public static float testIntToFloat(int value) { return (float) value; } public static byte testIntToByte(int value) { return (byte) value; } public static char testIntToChar(int value) { return (char) value; } /** Longs */ public static double testLongToDouble(long value) { return (double) value; } public static float testLongToFloat(long value) { return (float) value; } public static int testLongToInt(long value) { return (int) value; } /** Doubles */ public static float testDoubleToFloat(double value) { return (float) value; } public static int testDoubleToInt(double value) { return (int) value; } public static long testDoubleToLong(double value) { return (long) value; } /** Floats */ public static double testFloatToDouble(float value) { return (double) value; } public static int testFloatToInt(float value) { return (int) value; } public static long testFloatToLong(float value) { return (long) value; } }