Reworked the property constructor to use a string as type check.