Why is this necessary? This shouldn't require any cast, let alone a dynamic one.