make pointer var dest work for int32,int64