Enables casting to string multiple times

This would allow us to capture the last query for logging and profiling, etc.