};
#define BT_ASSERT_PRE_NOTIF_IS_TYPE(_notif, _type) \
- BT_ASSERT_PRE((_notif)->type == (_type), \
+ BT_ASSERT_PRE(((struct bt_notification *) (_notif))->type == (_type), \
"Notification has the wrong type: expected-type=%s, " \
"%![notif-]+n", bt_notification_type_string(_type), \
(_notif))