Do some type checking in ask(), issue 2322