add Context.getExpectedType