#87 It is necessary to check if property instance is not null or undefined before casting