Add type cast to remove warning