Cast to Device