Removed Warnings in fill & generate by explicit typecasting