Reverted to Boost cast