A pasty (, ), (sometimes known in Britain as a Cornish pasty, and in the United States as a pastie or British pasty) is a baked pastry , a traditional variety of which is particularly associated with Cornwall , the westernmost county in England.