Commented out some unnecessary code. Added assume statements to stop MSVC from generating branching code for plain static_casts.