Yes, just cast it as if it were the right type.