Like a hedge, real estate can protect you from the dangers of inflation.