将object转化成byte[]