What does "costard" mean?

Costard: The head; -- used contemptuously. Try whether your costard or my bat be the harder. Shak.

Sources