type id are converted back to numbers