Inventory-Server: fix type cast issue