Apply cast to remove warning on assignment of pointers of different signedness.