address type to enum