Fix a warning due to casting, removed the need for casting