Yep, nylon and epoxy resin have similar indices of refraction, but it's not perfect. I tried casting thin rods out of epoxy to replace the nylon but failed to achieve a good result.
I guess the epoxy's index of refraction depends on all kinds of factors such as the mixing ratio and the conditions under which it cures.