set Type via reflection for Mac Mono