Fixed wrong cast in DetectionProperty