Never do this. You should never cast string literals unless you know what you're doing and you're not.
It will make it silently succeed when it should not. If you use the API properly, it will...