Don't require OkBuffer callers to cast.

The casting masks bugs. Instead accept a long and do a range check in
OkBuffer.