create unions to deal with const pointers