Remove if-chain, make specific fget/fset for each field type