More useful than a cap in flight is a spare WAC chart. Spread it out over half the windscreen, does a wonderful job of blocking out the sunlight!
Maybe not the best to do flying around the Bankstown circuit, but it does work, and avoids both problems associated with wearing caps. (the little buttons, and hat-hair)