Hydrator Strategy to extract and hydrate Boolean values

New PR for #6230 but on develop branch
Can you add a docblock explaining what this class is supposed to do?