Is the casting really needed for this variables?