Use the expect operator where possible since it is more efficient.