Hi Kai,
You need to tell what the compiler says..
This can be either 1 of 2 things from my point of view, either your ProprtyType is not the correct one and then you will receive a casting error (can't implicitly cast or something like that ) or you are missing the import on the top for ProprtyType.
BR,
Saar