Add device kwarg support to can_cast and result_type
#691
+22
−3
device kwarg support to can_cast and result_type
#691