convert back to original data's dtype