Instead of forcing literal (which doesn't always work), switched to anything that can get a type.