Object to field while using shared workflow

While calling a shared workflow, output fields are coming as Object type in the parent workflow. Because of this, calculations and comparisons fail in all step.
What is the correct way to convert Object type to Number/String/Date in Process Studio?