Use char* cast (thx Auria)
Add sampler object support
Some test code