Here you can find the source of castByte(Object o)
public static Byte castByte(Object o)
//package com.java2s; //License from project: Open Source License public class Main { public static Byte castByte(Object o) { if (o instanceof Number) { return ((Number) o).byteValue(); }//w ww. j av a 2 s . com return null; } }