Moved all conversion functions from sp_util.h to conversions_wrap.h