gpl: Fixed invalid cast.