Uses Integer.parseInt() instead of direct cast when handling mongo extended binary data.