Hydrator Strategy to extract and hydrate Boolean values

New PR for #6230 but on develop branch
add @throws here