Remove long casting

as it doesn't play well with non integer PKs