Fix class captures, check-cast can take [primitive