Removed forced char* casting

Not really necessary