Adding a cast for std_atomic