Fix build: narrowing cast

Change-Id: Iebcc89019dc5c482ab00743071002e2983e65469