Replace cast to int with GLIB macros