fixed cast error in text reader nodes