I wish there was other way around. infer binary encoding from native types