bucket: add missing type conversion

Change-Id: If51a0007754dc15211398c331e35fb9221448489