package org.mamago.util; public class Cast { // Prevent instantiation private Cast() {} public static byte asByte(int i) { // @Fixme[MA]: check whether casting give out-of-bounds check, otherwise add in for safety return (byte) i; } public static short asShort(int i) { // @Fixme[MA]: check whether casting give out-of-bounds check, otherwise add in for safety return (byte) i; } }