writeBytes in method loop
Repeat casting