Yes, you can cash a Mastercard gift card. Here are a few options:
Sell it online through a website or app.
Use payment services like PayPal or Venmo.
Visit a gift card exchange kiosk.