Conversion Functions and to_/from_binary functions for all versions