Replace (string) casting with (array) in version::getPrerelease().