Fixes a ClassCastException on DataSourceManager(regression)