add a cast to remove a warning message