Creating Collisions Based on Dynamic Shadows/Colour Values

Basically what I want to do is have all dynamic shadows in my game form solid collisions - so that the player cannot enter any shadowed area. The game will have a highly contrasting black and white style so that the shadows stand out. If anyone could point me in the direction of how to begin achieving this I’d be extremely grateful.