Added cast to eliminate build warning