[RFC] Fix garray.* according to -Wconversion

Are you cool with these changes? I think the casts are okay in this case.