Iteration of type casting implementation.