Fix the bug of cast int GType to int