Can I use a Spear like a Quarterstaff?

So I’m playing a Monk character that uses a Spear. If I were to have weapon mastery on Spears and Quarterstaffs would I be able to use the topple feature from a quarterstaff while using the spear if instead of a stabbing attack I did a sweeping attack with the blunt end that dealt bludgeoning damage?