extract pair as expected type