Implemented casting to and from hexBinary and base64Binary