I didn't change this function call at all. Only automatically did refactoring and change of function name to be more accurate to what actually function is doing. But, yes in this case casting is not needed at all.