Problematic casts in gendata.hxx are already under control

Change-Id: If3b0f667b379b7973364c93be4b88347e5768223