BUGFIX: Hotfix for cast in opencl backend