Remove silly gpointer casting