Fix PerformanceTest InvalidCastException in Android