widgets: fix user_data type cast