Simplify casting