fixing class cast exception occured due to ActualParameter instance