At the end of test we should read from input vector (not output) in order to check if transform() with as<int>() was performed correctly.
This adds the as() and convert() functions for converting between OpenCL types.