make sure to use the type specified by the user when resolving the record