This study seeks to evaluate the safety and efficacy of Nelotanserin for the treatment of Rapid Eye Movement (REM) Sleep Behavior Disorder (RBD) in subjects with dementia with Lewy bodies (DLB) or Parkinson's disease dementia (PDD).