value in abstractfield returns value in the correct type