Lightning Framework Fake Pull Request

I made this PR to myself so that Ioan/Mark can add comments inline if desired.
This is copying the whole path again. I would just pass the static_cast<> in here.