Update TranslationWalker.php

tried to make a universal typecast