Changes to tfidf by using typecasting.