fix broken casting in MATE
fix broken casting in MATE

crystalline/openc2e,ccdevnet/openc2e,bdonlan/openc2e,ccdevnet/openc2e,crystalline/openc2e,bdonlan/openc2e,crystalline/openc2e,crystalline/openc2e,crystalline/openc2e,ccdevnet/openc2e,bdonlan/openc2e,bdonlan/openc2e,ccdevnet/openc2e,ccdevnet/openc2e,ccdevnet/openc2e