fix type error
Simplify ReadBytes based on new constraints.